diff --git a/frontend/src/lib/assets/app.css b/frontend/src/lib/assets/app.css index 1236cdd50e..8f19f626ca 100644 --- a/frontend/src/lib/assets/app.css +++ b/frontend/src/lib/assets/app.css @@ -448,6 +448,25 @@ input[type='time']::-webkit-calendar-picker-indicator { } } +/* Content arriving, rather than being there: Home's page and the page header's actions, which + appear only once the header has measured them and so land after what is around them. */ +@keyframes wm-page-in { + from { + opacity: 0; + } + to { + opacity: 1; + } +} +.wm-page-in { + animation: wm-page-in 500ms ease-out both; +} +@media (prefers-reduced-motion: reduce) { + .wm-page-in { + animation: none; + } +} + .svelte-flow__edges { z-index: -10; } diff --git a/frontend/src/lib/components/PageHeaderBar.svelte b/frontend/src/lib/components/PageHeaderBar.svelte index 226ffa63a8..69861b42ad 100644 --- a/frontend/src/lib/components/PageHeaderBar.svelte +++ b/frontend/src/lib/components/PageHeaderBar.svelte @@ -82,8 +82,7 @@ The row's height matches the sidebar's own header row, so the two read as one ba chrome: padLeft + padRight + (handleShown ? handleWidth + GAP : 0), trail: trailMeasures.trail, summary: BAR_STAGES.map(() => (hasSummary ? GAP + summaryFloorWidth : 0)), - actions: - !hasActions ? [0] : actionsRigid ? actionWidths : [GAP + FLEXIBLE_ACTIONS_RESERVE], + actions: !hasActions ? [0] : actionsRigid ? actionWidths : [GAP + FLEXIBLE_ACTIONS_RESERVE], folds: hasActions && actionsRigid ? (content?.actionFolds ?? 0) : 0, earlyFolds: content?.earlyActionFolds, summaryNamesItem, @@ -117,11 +116,7 @@ The row's height matches the sidebar's own header row, so the two read as one ba next[fold] = width actionWidthsByVersion[version] = next } - function measureActions( - fold: number, - _epoch: number, - _version: string - ): Attachment { + function measureActions(fold: number, _epoch: number, _version: string): Attachment { return (node) => { const ro = new ResizeObserver(() => recordActions(fold, GAP + node.offsetWidth)) ro.observe(node) @@ -324,12 +319,13 @@ The row's height matches the sidebar's own header row, so the two read as one ba bar and run to its right edge, and they stretch its full height because that surface sits on the bottom edge. --> + this box hidden too (homeSnapshot.ts). It fades in rather than popping in, since it + lands after what the snapshot already painted around it. -->