Skip to content

Fit the phone marking tools on narrower iPhones - #142

Merged
cu1ch3n merged 1 commit into
mainfrom
fix/phone-marking-tools-fit
Nov 11, 2026
Merged

cu1ch3n merged 1 commit into
mainfrom
fix/phone-marking-tools-fit

Conversation

@cu1ch3n

@cu1ch3n cu1ch3n commented Nov 11, 2026

Copy link
Copy Markdown
Member

What and why

Since #119 added Edit source to the bottom marking bar on phones, its ten buttons (magic pen | pen, region, sticky note, strike, edit source, select | undo, redo | collapse) need about 400px. Measured in the demo:

Viewport Before: tools needed / shown After
375 px (iPhone SE, mini) 341 / 307, two buttons hidden 308 / 308
390 px (iPhone 15/16) 341 / 322, Redo cut in half 308 / 308
402 px (iPhone 17) 341 / 334 308 / 308
430 px (Pro Max) 341 / 341 308 / 308

The bar scrolled sideways with no hint. Up to 430px, buttons are now 32px wide instead of 35px (height stays 36px) and separators have 1px margins instead of 2px. That makes the bar about 360px on every current iPhone. The collapsed pill keeps its own width.

How it was checked

  • Measured the bar in the built demo with Chromium and WebKit at 375/390/402/430 px (numbers above), with before/after screenshots.
  • iOS Simulator (iPhone 17, Safari): the whole bar shows, including Redo and collapse. Tapping Edit source with AXe hits that button.
  • check-review-pdf-appearance (pointer target sizes, phone dock positioning) and check-pdf-tools (phone collapsible bottom capsule) pass locally.
  • npm run build, npm run build:playground

Since Edit source joined the bottom marking bar, its ten buttons needed
about 400px. On 390–402px phones (iPhone 15–17) the bar scrolled sideways
with nothing to show it and cut Redo in half; on 375px phones two buttons
were hidden. Up to 430px the buttons are now 32px wide and the separators
narrower, so the whole bar, about 360px, shows on every current iPhone.
@cu1ch3n

cu1ch3n commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T18:23:52.063746Z 96b98c5 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 96b98c5c13

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@cu1ch3n
cu1ch3n merged commit 1f118a4 into main Nov 11, 2026
11 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.

1 participant