Footer site map full width; side nav fits 30-character titles over full-width dividers; Timeline under Data

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-10-01 00:04:29 -05:00
parent 45b422641a
commit 4a1d6fd6e9
4 changed files with 59 additions and 51 deletions

View file

@ -68,10 +68,10 @@ function jump(id: string) {
document.getElementById(id)?.scrollIntoView({ behavior: scrollBehavior(), block: "start" });
}
function Label({ section }: { section: EditorSection }) {
function Label({ section, wrap }: { section: EditorSection; wrap?: boolean }) {
return (
<>
<span className="truncate">{section.label}</span>
<span className={wrap ? "" : "truncate"}>{section.label}</span>
{section.count != null && (
<span className="text-xs text-muted/70">({section.count})</span>
)}
@ -84,7 +84,9 @@ function Label({ section }: { section: EditorSection }) {
/* The desktop column. Place it in the grid's first track, in a cell
that is itself sticky (see EntityEdit). */
export function SectionNav({ sections }: { sections: EditorSection[] }) {
/* `wrap` lets a long label run onto a second line instead of being
cut short (the public pages' section titles, up to 30 characters). */
export function SectionNav({ sections, wrap = false }: { sections: EditorSection[]; wrap?: boolean }) {
const active = useActiveSection(sections);
return (
@ -107,7 +109,7 @@ export function SectionNav({ sections }: { sections: EditorSection[] }) {
: "border-transparent text-muted hover:border-brand/40 hover:text-link"
}`}
>
<Label section={section} />
<Label section={section} wrap={wrap} />
</button>
</li>
);