Skip to content

fix(zoom): an item taller than the screen fills the width and scrolls instead of shrinking - #367

Merged
vite-hub[bot] merged 3 commits into
mainfrom
fix/zoom-tall-items
Nov 5, 2026
Merged

vite-hub[bot] merged 3 commits into
mainfrom
fix/zoom-tall-items

Conversation

@onmax

@onmax onmax commented Nov 5, 2026

Copy link
Copy Markdown
Owner

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 auto grid 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.

  • When fitting the height would shrink the copy below its size on the page, it now fills the stage's width and the stage scrolls (data-scroll). The History screenshot opens at 1.32×.
  • The stage's track is minmax(0,1fr), so an oversized item no longer moves its centre.
  • The arrows sit on the dialog over the stage's cell, so they stay put while the stage scrolls.
  • travel() reads the frame's transform-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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-05T21:16:47.015997Z
We couldn’t complete this review. Comment @codex review to try again.
a1d2dcc PR opened
ℹ️ 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

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-5.6-sol | 𝕏

Comment thread packages/zoom/src/script.ts Resolved
@pkg-pr-new

pkg-pr-new Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@367

comark-badge

pnpm add https://pkg.pr.new/comark-badge@367

comark-cards

pnpm add https://pkg.pr.new/comark-cards@367

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@367

comark-cast

pnpm add https://pkg.pr.new/comark-cast@367

comark-charts

pnpm add https://pkg.pr.new/comark-charts@367

comark-chat

pnpm add https://pkg.pr.new/comark-chat@367

comark-chips

pnpm add https://pkg.pr.new/comark-chips@367

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@367

comark-code

pnpm add https://pkg.pr.new/comark-code@367

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@367

comark-colors

pnpm add https://pkg.pr.new/comark-colors@367

comark-comments

pnpm add https://pkg.pr.new/comark-comments@367

comark-critic

pnpm add https://pkg.pr.new/comark-critic@367

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@367

comark-details

pnpm add https://pkg.pr.new/comark-details@367

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@367

comark-diff

pnpm add https://pkg.pr.new/comark-diff@367

comark-embed

pnpm add https://pkg.pr.new/comark-embed@367

comark-fields

pnpm add https://pkg.pr.new/comark-fields@367

comark-figure

pnpm add https://pkg.pr.new/comark-figure@367

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@367

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@367

comark-github

pnpm add https://pkg.pr.new/comark-github@367

comark-icon

pnpm add https://pkg.pr.new/comark-icon@367

comark-include

pnpm add https://pkg.pr.new/comark-include@367

comark-keys

pnpm add https://pkg.pr.new/comark-keys@367

comark-links

pnpm add https://pkg.pr.new/comark-links@367

comark-linter

pnpm add https://pkg.pr.new/comark-linter@367

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@367

comark-mark

pnpm add https://pkg.pr.new/comark-mark@367

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@367

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@367

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@367

comark-media

pnpm add https://pkg.pr.new/comark-media@367

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@367

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@367

comark-outline

pnpm add https://pkg.pr.new/comark-outline@367

comark-properties

pnpm add https://pkg.pr.new/comark-properties@367

comark-qr

pnpm add https://pkg.pr.new/comark-qr@367

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@367

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@367

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@367

comark-sources

pnpm add https://pkg.pr.new/comark-sources@367

comark-steps

pnpm add https://pkg.pr.new/comark-steps@367

comark-table

pnpm add https://pkg.pr.new/comark-table@367

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@367

comark-tests

pnpm add https://pkg.pr.new/comark-tests@367

comark-time

pnpm add https://pkg.pr.new/comark-time@367

comark-ui

pnpm add https://pkg.pr.new/comark-ui@367

comark-xref

pnpm add https://pkg.pr.new/comark-xref@367

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@367

commit: ca0545e

@vite-hub

vite-hub Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-11-05T21:29:44.998Z 10m 52s

Latest result

Pull request merged.

Final answers

Session

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.

View 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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.

Pullfrog  | View workflow run | Using gpt-5.6-sol | 𝕏

@vite-hub
vite-hub Bot merged commit d2b6fc0 into main Nov 5, 2026
6 checks passed
@vite-hub
vite-hub Bot deleted the fix/zoom-tall-items branch November 5, 2026 21:55
This was referenced Nov 5, 2026
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