Registry Mirror
Skip to content

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Adds a Text size row to Settings → Display in plan review and annotate: 13, 15, 17, 19 or 21 px of body text. 15 is the default and matches today's size.

Only the document scales: headings, lists, inline and fenced code, tables, callouts, question cards and the plan diff. The header, sidebars, panels and menus stay the same size, which is the issue's complaint about VS Code zoom. Raw HTML pages and diagrams render themselves, so they don't change.

The setting is stored in a cookie, like the other Display settings. At 15 the app adds nothing to the page, and every CSS rule that reads the scale only applies when the data-doc-text-size attribute is set (a test checks this). The settings registry is bundled into the guides.show viewer, so the viewer manifest was regenerated.

Fixes #2066.

Settings → Display → Text size: 13 / 15 / 17 / 19 / 21 px of body text,
15 (today's) by default. Scales the document's own blocks only (headings,
lists, code, tables, callouts, question cards, the plan diff); the header,
panels and menus keep their size. Raw HTML and diagrams draw themselves.
Cookie-only setting; at the default nothing is put on the page. The
guides.show viewer manifest is regenerated (the registry is bundled there).
)

Review on #2073:
- Settings shows the Text size row only with showDocumentTextSize (default
  off); Plannotator passes it on a markdown or text document, so raw HTML,
  live apps and diagram files have no row.
- The size a block root passes down scales too (list markers, alert titles),
  in the base layer so a block's own size class still wins; task checkboxes
  and the question card's radios and Other mark scale with the text.
- Rules are scoped to a document container (data-doc-text-root) and leave
  out the table / diagram popouts and diagram blocks entirely.
- Doc comment names theme.css. Viewer manifest re-synced.
@backnotprop
backnotprop merged commit 1cce28e into main Oct 22, 2026
40 of 41 checks passed
backnotprop added a commit to ilja/plannotator2 that referenced this pull request Oct 28, 2026
Main already has Text size (backnotprop#2073), so the size setting goes. The font is
redone on the same scope as Text size (the document's blocks, in theme.css),
so the per-block document-prose / document-scaled classes and
utils/documentTypography are no longer needed.
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.

Option to increase/decrease text size

1 participant