Repository navigation
feat(zoom): show an image in a table cell as a thumbnail that zooms - #482
Conversation
Codex Review Summary: ❌ FailedThis 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. |
Latest result Pull request merged. Final answersSession Pull request merged. PR #482 is ready to merge. All earlier findings are fixed on the assigned head, all review threads are resolved, and current-head checks are green. All 16 local zoom tests passed, and lint passed with warnings. A local pnpm SQLite error prevented building the dependencies needed for the table-layout tests, so I relied on hosted CI for that coverage. No repair commit was needed. Session Pass interrupted; current webhook state retained. Session Pass interrupted; current webhook state retained. Session Pass interrupted; current webhook state retained. Session Pass interrupted; current webhook state retained. Session Pass interrupted; current webhook state retained. Session Pass interrupted; current webhook state retained. |
comark-annotate
comark-badge
comark-bundle
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-git-graph
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-motion
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: |
There was a problem hiding this comment.
Important
Fix the failing zoom test and the image sizing regressions before merging. The new thumbnail test passes, but it only covers a landscape image with explicit dimensions.
Approach: Reusing the existing zoom dialog and delegated listener is the right approach; the dialog needs to size the opened image independently of its thumbnail on the page.
Reviewed changes across parsing, table layout, the zoom runtime, and the authoring docs:
- Thumbnail rendering: Table images become lazy thumbnails with configurable bounds, independently of the
imagesoption. - Zoom dialog: Image copies can grow past the old 4× cap, and an optional HTTP(S) link appears in the header.
- Table layout and documentation: Image cells influence column sizing and wrapping; the docs and skills describe sizing and opt-outs.
- Verification: All 32 zoom and table layout unit tests passed. Chromium zoom E2E: 27 passed, 1 failed. Additional Chromium checks reproduced the sizing issues below.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
ℹ️ No new P0 or P1 findings; one input-preservation regression is noted inline. The prior review threads remain open.
Reviewed changes since a8a3a9c:
- Normalized image attributes. Switched
linkandstyleto the sharedtext()helper before emitting the dialog link and thumbnail ratio. - Verified rendering. Ran all 15 zoom unit tests and checked whitespace-sensitive values through the public HTML renderer.
gpt-6.2-sol(high) | 𝕏
…ed one whole A thumbnail's box no longer sets the zoomed size: a tall file scrolls, an icon stays its size, and a copy inside a context shell is measured. An image with no size written keeps a 3:2 box and shows whole. Table layout counts only images that are thumbnails.
There was a problem hiding this comment.
Important
Unsized thumbnails lose their visible keyboard focus indicator. The Chromium suite passes, but tabbing to an unsized thumbnail reproduces the regression.
Reviewed changes since ab63b43:
- Adjusted zoom sizing. Used the actual image clone inside context wrappers and based the scroll threshold on the thumbnail’s file size.
- Changed thumbnail sizing and layout. Added a height limit for sized images, fitted unsized images without cropping, and counted only marked thumbnails in table layout.
- Verified the delta. The workspace build, all 33 focused unit tests, and all 29 Chromium zoom end-to-end tests passed. This review is pinned to
86b5ba0;536e302landed during the run and is outside its scope.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
ℹ️ No new P0 or P1 findings. Approval is withheld while earlier review threads remain open.
Reviewed changes since 86b5ba0:
- Preserved authored links. Verified that the HTML renderer keeps a trailing nonbreaking space in a zoom link and that URL parsing encodes it as
%C2%A0. - Preserved authored styles. Checked that the generated ratio comes before the authored CSS, so a trailing escape cannot consume its separator. All 16 zoom unit tests passed.
CI’s docs step failed because the diagrams-d2 example timed out reaching Kroki; CI skipped the check and E2E jobs.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes since 536e302:
- Restored keyboard focus. Unsized thumbnails now suppress only the resting outline, so tabbing to one shows the 2px focus ring.
- Respected the width limit. Unsized thumbnails use the same 3:2 ratio for layout and height calculation, so a
2remlimit gives a roughly 32×21px thumbnail even with a host image reset. - Verified the fixes. The workspace build, 34 focused unit tests, all 29 Chromium zoom tests, and the focused Firefox regression passed. WebKit could not launch because the runner lacks the required system libraries.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes since d99e4d1:
- Preserved the ordinary-image test. Added
{zoom=false}to the table image that should still obey the typeset height cap. - Covered the default thumbnail. Added a second table image and verified that it renders at 64px. All five typeset E2E tests passed locally in Chromium. GitHub CI skipped E2E after the Docs step got a
504 Gateway Timeoutfrom thefontshareprovider.
gpt-6.2-sol(high) | 𝕏
#271) * feat(viewer): an image in a table cell is a small thumbnail that zooms Pins comark-ui to onmax/comark-ui#482 (536e302f). comark-zoom draws and zooms the thumbnails, so Drop's own lightbox leaves them alone. * chore: pin comark-ui to d99e4d12 of onmax/comark-ui#482 * fix(viewer): keep thumbnail comment anchors and glossary columns usable * fix(viewer): save thumbnail edge strokes and handle Marker retries --------- Co-authored-by: vite-hub[bot] <320448255+vite-hub[bot]@users.noreply.github.com>

A reference table with a screenshot per row was unusable: each image took the full width of its cell, so a row was as tall as its screenshot.
An image in a table cell is now a thumbnail, at most 64px high and 128px wide in the file's ratio. A click, Enter, or Space opens it at the size of its file, in the dialog every other image uses. Nothing new to write:
Evidence, with a live page to click through: https://drop.vitehub.dev/d/j8cw1k74my61/table-thumbnails-evidence
imagessays, so a host that turns zoom off for its other images (Drop does) still gets it.thumbnails: falseturns it off.linkon any image names the page it shows. The zoomed view links to it from its header, and the click on the image still zooms. Only http and https links are kept.--comark-thumb-heightand--comark-thumb-widthset the size.tableLayoutcounts a cell's images toward its width, and keeps two thumbnails in one cell together.Checked in Chromium at 1280px and 390px, light and dark. Not checked in Firefox or WebKit beyond what CI's e2e runs.
🤖 Generated with Claude Code