fix(editor): the drawing stays clear of the strip while the page scrolls
The drawing column (chips, tools, canvas, add row, message line) is pinned under the strip from 1 024 px wide and 644 px high; the canvas box is capped in width by the window height (4:3 kept, unchanged at the three sizes); pinned controls carry no strip margin. The rev 4 test workarounds go; the row-click scroll was Playwright's bring-into-view.
This commit is contained in:
1 parent
da04c79d13
commit
36ed9f980b
7 files changed
+286
-31
No files matched your search
@@ -242,6 +242,27 @@ Backspace, Insert, « + ») takes the focus with a scroll, so the margin applies
|
||||
one chosen by a pointer or a finger takes it without a scroll. Below 1 024 px
|
||||
the strip is not sticky.
|
||||
|
||||
The drawing column (U2 Task 17: the view chips, the tools and the canvas box,
|
||||
the add row, the message line; `data-drawing-column`) is pinned under the strip
|
||||
from 1 024 px wide and 40.25 rem (644 px) high: `sticky` at
|
||||
`--edit-pinned-top` (bar + strip + 0.75 rem, the strip's gap), aligned to the
|
||||
start of its grid row, so no part of it ever passes under the strip or the bar
|
||||
while the side panel scrolls past; the side panel still passes under the strip.
|
||||
A bottom margin of −3 rem lets the pinned travel run into the page's bottom
|
||||
space (the workspace's gap and the main area's padding), else the end of the
|
||||
page pushed the column's top under the strip at 1 180 × 820. So that the column
|
||||
always fits the window, the canvas box (`data-canvas-box`) is capped in width at
|
||||
`(100svh − --edit-pinned-top − 9.25 rem) × 4/3 + 2 px` (9.25 rem: one row of
|
||||
chips, one add row, the line and the gaps; 2 px: the box's border), keeping its
|
||||
4:3 ratio: the cap follows the window's small viewport height, never the
|
||||
scroll nor a collapsing browser toolbar, and leaves the box unchanged at
|
||||
1 024 × 768, 1 180 × 820 and 1 280 × 800; a capped box sits left, with spare
|
||||
width on its right. Its focusables carry only the bar's margin there (the
|
||||
strip's margin, larger than the pinned top, would scroll the page on a focus of
|
||||
a pinned control). Below 644 px high the tool column (365 px) no longer fits
|
||||
beside a capped box: nothing is pinned or capped, and the drawing scrolls under
|
||||
the strip as before, with the strip's margin on its focusables.
|
||||
|
||||
The editor page's other focusables (criterion 25: the header's « Enregistrer », the
|
||||
tab row, « Défaire » and « Refaire », the notices' controls) carry a smaller margin,
|
||||
the bar's height plus 0.5 rem, at every width since the bar is sticky everywhere. It
|
||||
|
||||
Reference in new issue
Block a user