From b0affd1a8c8ff22bdd8a0dd659c8d212d618abdd Mon Sep 17 00:00:00 2001 From: codexy Date: Thu, 26 Nov 2026 14:54:59 +0900 Subject: [PATCH] fix: keep window-mode header and bottom bar above the slide In window mode the content is as tall as the document, so its view transition snapshot reached past the viewport and covered the live sticky bottom bar (and the header once scrolled). Give both bars their own snapshot above the content group while a transition runs. Co-Authored-By: Claude Opus 5.5 --- src/next/style.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/next/style.css b/src/next/style.css index e9b8682..f7f7374 100644 --- a/src/next/style.css +++ b/src/next/style.css @@ -110,6 +110,15 @@ html:has(.stackflow-next[data-stackflow-scroll-mode=window]) > body::-webkit-scr } [data-stackflow-scroll-mode=window] > .stackflow-next-header{top:0} [data-stackflow-scroll-mode=window] > .stackflow-next-bottom{bottom:0} +/* In window mode the body is as tall as the document, so its transition + snapshot reaches past the viewport. The live header and bottom bar sit + under the transition layer, so they get snapshots of their own above it. */ +html[data-stackflow-animating] [data-stackflow-scroll-mode=window] > .stackflow-next-header{view-transition-name:stackflow-next-header} +html[data-stackflow-animating] [data-stackflow-scroll-mode=window] > .stackflow-next-bottom{view-transition-name:stackflow-next-bottom} +::view-transition-group(stackflow-next-header),::view-transition-group(stackflow-next-bottom){animation:none;z-index:10} +::view-transition-image-pair(stackflow-next-header),::view-transition-image-pair(stackflow-next-bottom){animation:none} +::view-transition-old(stackflow-next-header),::view-transition-old(stackflow-next-bottom){display:none} +::view-transition-new(stackflow-next-header),::view-transition-new(stackflow-next-bottom){animation:none;opacity:1} [data-stackflow-scroll-mode=window] .stackflow-next-scrollbar{position:fixed;z-index:4} [data-stackflow-bounce-scroll]{overscroll-behavior-y:none} /* Keep controls responsive while the browser paints the visual snapshot layer. */