fix(editor): focus margin on the strip's targets, not a page padding

This commit is contained in:
bchanot committed 2026-11-19 12:24:34 +01:00
1 parent f2809f20ca
commit 399a5adae6
3 files changed
+86 -12

No files matched your search

+5 -2
View File
@@ -229,8 +229,11 @@ 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.
strip's (`--edit-strip-height`) are CSS variables of `styles/index.css`, which also feed a
`scroll-margin-top` on the drawing place's focus targets (rows, vertex and point handles, the
canvas box), from 1 024 px and only while the place is not `hidden`, so a focus or a
`scrollIntoView` never lands under either. It is a margin, not a page `scroll-padding`: the
padding made the page jump when the focus went to the sticky bar or strip themselves.
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