Repository navigation
fix(zoom): an item taller than the screen fills the width and scrolls instead of shrinking - #367
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Important
Resizing or loading a replacement image can move a scrolled tall item to a different part of its content.
Reviewed changes in a1d2dcc, covering the new tall-item zoom layout and its browser behavior.
- Tall-item layout — Items that would shrink below their page size now scale across the available width and scroll vertically.
- Stage and controls — The stage uses a constrained grid track, scrolling items scale from the top, and group arrows remain fixed over the dialog cell.
- Animation geometry — Open and close travel now uses the computed transform origin.
- Coverage and docs — The docs describe the behavior and an e2e exercises initial placement, end scrolling, and closing.
gpt-5.6-sol | 𝕏
comark-annotate
comark-badge
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
Latest result Pull request merged. Final answersSession Pull request merged. Session Pushed ca0545e fixing Pullfrog’s P1 scroll-position jump and resolved the thread. Reproduced resize and replacement-image failures before the fix; preservation and fitted-layout reset now pass. Playwright zoom/annotate/carousel suites: 48 passed. Zoom unit tests: 10 passed. Focused lint, typecheck, formatting, and package builds passed. Awaiting hosted checks and automated review. Session Pushed ca0545e fixing Pullfrog’s P1 scroll-position jump and resolved the thread. Reproduced resize and replacement-image failures before the fix; preservation and fitted-layout reset now pass. Playwright zoom/annotate/carousel suites: 48 passed. Zoom unit tests: 10 passed. Focused lint, typecheck, formatting, and package builds passed. Awaiting hosted checks and automated review. Session Pushed ca0545e fixing Pullfrog’s P1 scroll-position jump and resolved the thread. Reproduced resize and replacement-image failures before the fix; preservation and fitted-layout reset now pass. Playwright zoom/annotate/carousel suites: 48 passed. Zoom unit tests: 10 passed. Focused lint, typecheck, formatting, and package builds passed. Awaiting hosted checks and automated review. Session Pushed ca0545e fixing Pullfrog’s P1 scroll-position jump and resolved the thread. Reproduced resize and replacement-image failures before the fix; preservation and fitted-layout reset now pass. Playwright zoom/annotate/carousel suites: 48 passed. Zoom unit tests: 10 passed. Focused lint, typecheck, formatting, and package builds passed. Awaiting hosted checks and automated review. Pushed ca0545e fixing Pullfrog’s P1 scroll-position jump and resolved the thread. Reproduced resize and replacement-image failures before the fix; preservation and fitted-layout reset now pass. Playwright zoom/annotate/carousel suites: 48 passed. Zoom unit tests: 10 passed. Focused lint, typecheck, formatting, and package builds passed. Awaiting hosted checks and automated review. |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior Pullfrog review at a1d2dcc, focusing on the scroll-position fix and its browser coverage.
- Preserved reading position — Rebased tall-item scrolling on the displayed content width when resize or replacement-image loading changes the zoom geometry.
- Cleared fitted scrolling — Reset stale stage displacement when recomputation moves an item out of scrolling mode.
- Expanded browser coverage — Added tall-to-tall and tall-to-fitted cases for both viewport resizing and delayed replacement-image loading.
gpt-5.6-sol | 𝕏

Opening a zoom on an item that is already taller than the window made it smaller. The History screenshot in this Drop page is 645×943 px on the page with its notes, so
place()fitted it to the stage at 0.74×.The stage's
autogrid row also grew to the item's unscaled height, so the item was centred about 93 px too low and its bottom was cut off.data-scroll). The History screenshot opens at 1.32×.minmax(0,1fr), so an oversized item no longer moves its centre.travel()reads the frame'stransform-origin, so open and close still land on the item when the copy scales from its top.New e2e: a 1200×4800 image opens wider than on the page, starts at the top of the stage, and scrolls to its end. The zoom, annotate, and carousel e2e suites, the zoom unit tests, and the typecheck pass.