Skip to content

Screen View: the text in one flow as wide as the window (W1 step 16) - #178

Merged
brahm merged 1 commit into
mainfrom
claude/project-thread-tlkrle
Nov 20, 2026
Merged

brahm merged 1 commit into
mainfrom
claude/project-thread-tlkrle

Conversation

@brahm

@brahm brahm commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Requested by Brahm · project thread

Step 16 of docs/phases/W1.md: Screen View (PXV-01, W043, W012, B-038), and a check that the table of contents of the sidebar is live (W041).

What changes

  • desk-layout paginate_screen / screen_document: the document laid out as one page as wide as asked and as tall as its text.
    • No page edges, margins, headers or footers. Page, column and section breaks are dropped, the layout has one column, and notes go to the end.
    • Floating objects go in the flow after their paragraph, scaled down to fit the column. Objects fixed on a page go after the last paragraph that starts on that page. Objects of the masters are hidden.
  • View ▸ Screen View (Ctrl+Shift+R):
    • The view paints the flow on white, with no sheet or shadow.
    • The flow follows the width of the window, and the zoom sets the text size. View ▸ Text Size has Auto, Bigger and Smaller.
    • While Screen View is on, rulers, thumbnails, Show Layout and two pages are off, and the objects in the flow can't be selected or moved.
    • Leaving it brings back the previous zoom and thumbnails.
    • A toast says when headers, footers or master objects are hidden.
    • It is only offered for word processing documents, and works in full screen too.
  • Preferences ▸ Window: "Open New Documents in Screen View".
  • W041: the sidebar's table of contents already rebuilt itself on every change. The UI test now checks it while a heading is typed.
  • Other updates: shortcut list, docs/interface table, translations (pt_BR) and the README parity count.

Tests

  • New crates/desk-layout/tests/screen.rs.
  • New screen_view UI test, covering W041 and PXV-01.
  • fmt, clippy -D warnings and the workspace tests pass.
  • desk-ui lib: 151 ok.
  • Full UI suite: 250 ok.

Not checked on the Mac yet (goes to step 19): the exact wording and timing of Pages' notice, what Text Size Auto means there, whether Pages lets objects be selected in Screen View, and the page count it shows.


Generated by Claude Code

View > Screen View (Ctrl+Shift+R) lays the document out as one page as
wide as the window and as tall as its text: no page edges, margins,
headers or footers, no page, column or section breaks, one column, and
notes at the end. Floating objects show in the flow after their
paragraph, and those fixed on a page after the last paragraph that
starts there; the objects of the masters are hidden, and a notice says
so. The flow follows the width of the window, and the zoom sets the
size of its text, as View > Text Size (Auto, Bigger, Smaller) does.
Rulers, thumbnails and the layout view are off while it shows, and the
Preferences can open new documents in it (PXV-01, W043, B-038).

The UI test also checks that the table of contents of the sidebar
follows a heading as it is typed (W041).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NiPLVSJ4urMWCnygLAWw8C
@brahm brahm self-assigned this Nov 20, 2026
@brahm
brahm merged commit 0b4e810 into main Nov 20, 2026
9 checks passed
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.

2 participants