feat(block-editor): edit the open block in a Sheet when narrow #104
Loading…
Reference in a new issue
No description provided.
Delete branch "task/pienter-ui__block-editor-ux__narrow-sheet"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stacked on #101. In a container narrower than 44rem the open block's form opens in the package
Sheetinstead of a pane stacked under the list (at 420px the pane landed below all 20 rows and the row context was lost). Same title,Type · n / total, Previous/Next/Close (in the sheet footer); closing returns focus to the row. One mount of#block; crossing the breakpoint keeps the block open. Wide layout unchanged.The breakpoint now lives in JS only (
ResizeObserveron the root →data-layout="split|sheet"); the@containerrule is gone, so SSR/first render is split until mount measures. The sheet stays closable whiledisabled(a modal that cannot be dismissed would lock the page).Checks: typecheck, lint, format, bun test (139), both builds, BlockEditor play tests (11, incl. new
NarrowContainer) green; Chrome: NarrowContainer story — full-height sheet, first field focused. Not checked: the playground at phone width (the automation window would not resize), searchable picker → sheet when narrow.Goal: pienter-ui__block-editor-ux, ticket 40.