Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-BLOCK-257

A block editor in a grid card widens the card and keeps the palette above a readable text box

While a block editor is open in the title, header, body or footer of a grid card or a card, the preview SHALL give that card a minimum width that pushes the other cards of its grid row aside, show the edition palette in the flow above the text box, wider than the card if needed, with a maximum height and a vertical scroll, and keep the text box at a readable minimum width.

Part of StRS-MDOKFSTUDIO-BLOCK-003, outside the paths drawn on its map.

Scenarios 3

The situations the tests check; open one to read it.

nominalThe body of the second card of a three-column grid
Givenedit mode on a 900 px pane with a `{grid} 1 2 3 3` of three `{grid-item-card}`, and the cards narrower than the palette
Whenthe writer clicks the body of the second card and its block editor opens
Thenthe second card is at least 24em wide and the first and third cards are pushed aside, not overlapped; the edition palette is in the flow above the text box (its bottom is not below the text box top), may extend beyond the card, is at most 9em high (or 30% of the viewport) and scrolls vertically past that height; the text box is at least 18em wide and keeps its typed text visible; the card is not clipped by its rounded border
nominalThe title of a card
Giventhe same grid
Whenthe writer clicks the title of the second card
Thenthe editor of the title opens with the same layout: the card widens, the palette sits above the text box and the text box is readable
boundaryOther editors and layouts are unchanged
Givena block editor outside a card, a table cell editor, or a grid with the `auto` column count
Whenthe editor opens
Thenthe palette keeps its sticky placement and its width limit, the table cell keeps its own minimum width (see SwRS-MDOKFSTUDIO-TABLE-006), and the grid keeps its column rules; when the editor closes the cards return to their column widths

Implemented in 2

Tested by 2