fix(editor): the strip stays below the top bar on scroll

This commit is contained in:
bchanot committed 2026-11-19 12:15:52 +01:00
1 parent 62b400e876
commit f2809f20ca
6 files changed
+153 -3

No files matched your search

+8
View File
@@ -225,6 +225,14 @@ outline change (transforms and numbers only). The loupe goes away on the drop,
on a cancel (a second finger, a lost capture, a document change) and at the end
of the press. A mouse or pen drag shows no loupe.
The edit strip (U2 Task 14) stays under the shell's top bar from 1 024 px: it is
`sticky` at `top: var(--shell-top-bar-height)`, opaque, with a z-index of 5 (above the
drawing, under the loupe, the menus, the bar and the dialogs), and no ancestor sets an
`overflow` other than visible. The bar's height (3.5 rem plus the safe-area inset) and the
strip's (`--edit-strip-height`) are CSS variables of `styles/index.css`, which also feed the
document's `scroll-padding-top`, so a focus or a `scrollIntoView` never lands under either.
Below 1 024 px the strip is not sticky.
A creation (U2 Task 7, A2, A4, A12) is drawn by the overlay too, never by the
core, since the new shape is not in the document until « Créer »: