Repository navigation
Keep PDF pages readable across compact and expanded readers - #683
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
In the post-fix user test, a reader on page 25 could see only the first digit in the compact toolbar. Switching a portrait PDF from Fit page to Fit width could leave it in a 131 px strip. Opening a separate larger reader could also lose the page and zoom. DAM-104 · Content #7696
Changes
zoomandonZoomChangealongsidepageandonPageChange. Fit modes adapt to the destination viewport. Manual zoom keeps the same text size. Exiting fullscreen restores the saved inline fit or scale and its zoom-step limits. Echoing a fullscreen choice throughonZoomChangekeeps it scoped to fullscreen. Supplying a different controlledzoomoverrides both views. Choosing a fit or receiving a new host scale resets the zoom button limits.expandOnPageTapfor compact readers. Desktop page clicks request native fullscreen during the pointer gesture. Menu dismissal, text selection and touch double taps keep the reader inline.ui-monospace, monospacestack.--tl-viewer-page-edgeand the focus ring in the Viewer changeset.Verification
yarn workspace @transloadit/viewer lint:tsyarn workspace @transloadit/viewer test:unityarn workspace @transloadit/viewer test:browseron Chromium and mobile WebKit, including three fullscreen zoom steps followed by inline fit restoration, a host override, native fullscreen on desktop page click, touch double-tap suppression, and pixel sampling for edge contrast and focus visibilityyarn verify:full🤖 Claimed by kvz on
studio1/node-sdksince 2026-11-29 · resume:codex resume 01a227ab-3084-7793-adb3-77926f878b8c