bugfix: reader-nav is fully fixed; no settle-on-scroll (0.21.3)

This commit is contained in:
MechaCat02
2026-05-17 20:57:05 +02:00
parent 64ccc0ba84
commit 89b8785a40
6 changed files with 73 additions and 33 deletions

View File

@@ -226,9 +226,9 @@
main {
padding: var(--space-4);
/* Reserve room for the fixed header so its presence doesn't
overlap content. The min-height is a fallback that matches
the header at typical viewport sizes (6072px); resize
observers would be more accurate but the gap is forgiving. */
overlap content. The header height comes from a runtime
ResizeObserver (see onMount above) so this always tracks
the rendered size. */
padding-top: calc(var(--app-header-h) + var(--space-4));
max-width: 64rem;
margin: 0 auto;
@@ -236,6 +236,8 @@
}
:global(html[data-reader-fullscreen='true']) main {
padding-top: var(--space-4);
/* No top reservation in focus mode — the chapter image runs
edge-to-edge once the header has slid off. */
padding-top: 0;
}
</style>