Use case StRS-MDOKFSTUDIO-LAYOUT-003
A reader chooses how wide the text column is
As a writer or team, I choose how wide the text column is, from a narrow measure to the whole pane, and every open preview follows; as a reader, I switch between a narrow reading column, a column that lets wide content out, and the full pane with one button, the choice is still there when I come back, I see wide tables, pictures and diagrams in full in Auto when the pane has room, and I can rely on Margin to keep everything in a readable column and on Full width to use the whole pane.
Use case diagram
How it is split
This use case (StRS) is reached by 2 paths, one per coloured line. A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests. Where paths meet, they share the circle or the step.
path 1: Change the width mode path 2: Set the width in the settings other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Change the width mode
- The text column is as wide as the setting saysSwRS-MDOKFSTUDIO-LAYOUT-020 no reading position is known yetSwRS-MDOKFSTUDIO-LAYOUT-020 · 3 tests the reader presses the Width button and the mode goes Margin, Auto, Full width, back to Margin, keeping the reading line
- The width mode has changedSwRS-MDOKFSTUDIO-LAYOUT-022 in Full width the column limit is lifted and the page keeps a 16 px gutterSwRS-MDOKFSTUDIO-LAYOUT-044 in Auto, a table whose column minimums fit stays inside the text columnSwRS-MDOKFSTUDIO-LAYOUT-023 · 9 tests in Auto, a table, figure, image, code block or Mermaid diagram wider than the column is widened up to the available area
- Wide content is drawn at the width it needsSwRS-MDOKFSTUDIO-LIFE-169 the host refuses a value outside the tableSwRS-MDOKFSTUDIO-LIFE-169 · 15 tests the page keeps the choice in the saved panel state and the host stores it for the workspace
- The width choice is kept for the workspace
Path 2: Set the width in the settings
- The setting maxContentWidth is changedSwRS-MDOKFSTUDIO-LAYOUT-002 a value of 0 lifts the limitSwRS-MDOKFSTUDIO-LAYOUT-002 · 7 tests the page shows a text column exactly that wide, centred in a wider pane
- The text column is as wide as the setting says
This map has 493 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 6 behaviours on the map are tested one by one, with 43 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-LAYOUT-002The text column width follows the maxContentWidth setting 7 testsSwRS-MDOKFSTUDIO-LAYOUT-020The Width button cycles Margin, Auto and Full and keeps the reading line 3 testsSwRS-MDOKFSTUDIO-LAYOUT-022Margin keeps blocks in the column and Full removes the limit 5 testsSwRS-MDOKFSTUDIO-LAYOUT-023Auto width lets wide blocks break out of the column 9 testsSwRS-MDOKFSTUDIO-LAYOUT-044Auto keeps a table in the column when its minimum widths fit 1 test
SwRS-MDOKFSTUDIO-DIAG-021Diagrams can use the wider column in Auto width deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-003The maximum content width is rounded and capped at 2400 superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-002 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-004A width of zero lifts the column limit superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-002 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-005Each rendered page carries the width rule superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-002 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-006Open previews follow a change of the width setting superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-002 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-021A width mode choice is saved for the workspace superseded superseded by SwRS-MDOKFSTUDIO-LIFE-169 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-024Auto width excludes the open table-of-contents column superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-023 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-025Auto measures a wide table uncapped and rounds up superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-023 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-026Auto leaves edited and relatively sized elements in the column superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-023 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-027Auto uses the author's pixel width for an image breakout superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-023 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-028Full width removes the column limit superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-022 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-029Narrow tables and figures are centred in every width mode superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-022 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-030A paragraph holding only an image is marked as a figure superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-022 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-031Auto measures wide elements again when the layout changes superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-023 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-036A negative or non-numeric width falls back to 960 superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-002 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-038The saved width mode is restored when the page starts superseded superseded by SwRS-MDOKFSTUDIO-LIFE-170 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-039Full width centres the content with gutters of at least 15 px superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-022 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-040A width mode change keeps the reading line superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-020 Markdown file
SwRS-MDOKFSTUDIO-LAYOUT-041A width mode change measures the first-element clearance again superseded superseded by SwRS-MDOKFSTUDIO-LAYOUT-018 Markdown file