fix(viewer): line up the page and its transcription at the top #66

Merged
jfro merged 1 commit from fix/64-page-view-alignment into main 2026-11-01 14:21:04 +00:00
Owner

Closes #64

The page's own bits (the "Mirror as a typed page" button or the typed-mirror status, and the page's tags) sat above the page image in the left column only, so the page started lower than the transcription beside it: 56 px on the notebook page in the mock library at 1440 wide. They now go in a row of their own (#page-bar) above both panels, so the page and its transcription start level. The row is hidden when it has nothing. Phones stack as before, with the bar above the page.

  • DocumentLive: mirror bar + page tags moved out of the page column into #page-bar, above the grid.
  • Test: the tags test now checks the tags are in the bar and the page preview is the first thing in its column.
  • docs/page-mirrors.md says where the button is now.

Measured (top of page vs top of transcription panel, mock library, "Team meetings"):

before after
desktop 1440, page 3 (Mirror button + tag) 247 vs 191 219 vs 219
desktop 1440, page 2 (typed mirror status) 215 vs 191 215 vs 215

mix precommit: 1021 passed, 1 excluded (live LanguageTool).

Desktop (1440×900), page 3

Before:
before desktop
After:
after desktop

Desktop, page 2 (a typed mirror)

Before:
before desktop p2
After:
after desktop p2

Phone (390×844), page 3

Before:
before phone
After:
after phone

The screenshots are from the mock app (scripts/screenshots/serve.exs). docs/screenshots/notebook.png still shows the old layout. It can be regenerated with scripts/screenshots/run.sh at release time.

Closes #64 The page's own bits (the "Mirror as a typed page" button or the typed-mirror status, and the page's tags) sat above the page image in the left column only, so the page started lower than the transcription beside it: 56 px on the notebook page in the mock library at 1440 wide. They now go in a row of their own (`#page-bar`) above both panels, so the page and its transcription start level. The row is hidden when it has nothing. Phones stack as before, with the bar above the page. - `DocumentLive`: mirror bar + page tags moved out of the page column into `#page-bar`, above the grid. - Test: the tags test now checks the tags are in the bar and the page preview is the first thing in its column. - docs/page-mirrors.md says where the button is now. Measured (top of page vs top of transcription panel, mock library, "Team meetings"): | | before | after | |---|---|---| | desktop 1440, page 3 (Mirror button + tag) | 247 vs 191 | 219 vs 219 | | desktop 1440, page 2 (typed mirror status) | 215 vs 191 | 215 vs 215 | `mix precommit`: 1021 passed, 1 excluded (live LanguageTool). ### Desktop (1440×900), page 3 Before: ![before desktop](https://git.knope.dev/attachments/6ca90a31-830d-4ec4-b921-71dd7346d37c) After: ![after desktop](https://git.knope.dev/attachments/94cb16d8-2532-4c0e-befa-facb2ed2d686) ### Desktop, page 2 (a typed mirror) Before: ![before desktop p2](https://git.knope.dev/attachments/378bdead-49cd-45c2-b3b7-5338cfcf5d50) After: ![after desktop p2](https://git.knope.dev/attachments/baef5ad2-a6fc-4769-bbdd-231acdadabe6) ### Phone (390×844), page 3 Before: ![before phone](https://git.knope.dev/attachments/01c94a6d-15e8-4829-a994-4f92a6b28eb3) After: ![after phone](https://git.knope.dev/attachments/18b6b299-eba3-4424-8f92-e95c7c4ade4b) The screenshots are from the mock app (`scripts/screenshots/serve.exs`). docs/screenshots/notebook.png still shows the old layout. It can be regenerated with `scripts/screenshots/run.sh` at release time.
jfro added this to the v1.6.0 milestone 2026-10-31 21:13:14 +00:00
fix(viewer): line up the page and its transcription at the top
All checks were successful
CI / test (pull_request) Successful in 57s
ebc680fb4e
The page's typed-mirror bar and its tags sat above the page image in the
left column only, so the page started lower than the transcription
beside it. They now go in a row of their own above both panels (hidden
when it has nothing), and both panels start level.

Closes #64
jfro merged commit 0dff7e89b6 into main 2026-11-01 14:21:04 +00:00
jfro deleted branch fix/64-page-view-alignment 2026-11-01 14:21:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/rm-analyzer!66
No description provided.