From 60b4c8fdc576e229b0a4538860197a0a908fb2b1 Mon Sep 17 00:00:00 2001 From: Guilhem Lemouel Date: Tue, 13 Oct 2026 08:14:32 -0700 Subject: [PATCH] feat: keep an item's summary and drop its path on a narrow page header Co-Authored-By: Claude Opus 5.5 (1M context) --- .../src/lib/components/PageHeaderBar.svelte | 15 ++++--- .../lib/components/pageHeaderStages.test.ts | 18 +++++--- .../src/lib/components/pageHeaderStages.ts | 41 +++++++++++-------- 3 files changed, 46 insertions(+), 28 deletions(-) diff --git a/frontend/src/lib/components/PageHeaderBar.svelte b/frontend/src/lib/components/PageHeaderBar.svelte index af6dfba47a..84d7baaf81 100644 --- a/frontend/src/lib/components/PageHeaderBar.svelte +++ b/frontend/src/lib/components/PageHeaderBar.svelte @@ -74,7 +74,7 @@ The row's height matches the sidebar's own header row, so the two read as one ba barWidth: pageHeader.barWidth, chrome: padLeft + padRight + (handleShown ? handleWidth + GAP : 0), trail: trailMeasures.trail, - summary: BAR_STAGES.map((s) => (hasSummary && s.summary ? GAP + summaryFloorWidth : 0)), + summary: BAR_STAGES.map(() => (hasSummary ? GAP + summaryFloorWidth : 0)), actions: actions.length === 0 ? [0] : actionsRigid ? actionWidths : [GAP + FLEXIBLE_ACTIONS_RESERVE], folds: actions.length > 0 && actionsRigid ? (content?.actionFolds ?? 0) : 0, @@ -236,13 +236,16 @@ The row's height matches the sidebar's own header row, so the two read as one ba - {#if item && hasSummary && stage.summary} + {#if item && hasSummary}
- - + + {#if item.summaryContent} @@ -315,7 +318,7 @@ The row's height matches the sidebar's own header row, so the two read as one ba what the bar caps it from. A page's own control stands in at the width last seen. -->