Skip to content

Stack the playground's boxes as strips, in a smaller font - #14

Merged
abashev merged 1 commit into
mainfrom
playground-strips
Nov 8, 2026
Merged

abashev merged 1 commit into
mainfrom
playground-strips

Conversation

@abashev

@abashev abashev commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

The code and the result stood side by side, each half the width of the page, so a line of the formatter's 120 columns fitted in neither. They are now strips as wide as the page:

  • the code on top, the Format button and the status under it, the result below: the bar moves between the boxes in playground/index.md, and the intro says "the upper box" instead of "on the left";
  • each box is min(30vh, 20rem) high and can be pulled taller (resize: vertical), on every screen width, so the two-column breakpoints go;
  • the code in them is 0.65rem, 13 px, instead of 0.75rem.

Looked at with the 21.0.2 module fetched by scripts/fetch-playground.sh, in Chrome at 1440 px and at 390 px: the module loads, the boxes take the width of the page, and nothing scrolls sideways on the phone.

zensical build --clean --strict reports no issues.

The code and the result stood side by side, each half the width of the
page, so a line of the formatter's 120 columns fitted in neither. They
are now strips as wide as the page: the code on top, the Format button
and the status under it, the result below. Each box is 30% of the
window high, at most 20rem, and can be pulled taller. The code in them
is 0.65rem, 13 px, instead of 0.75rem.
@abashev
abashev merged commit c3f29cd into main Nov 8, 2026
2 checks passed
@abashev
abashev deleted the playground-strips branch November 8, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant