Repository navigation
fix(zoom): a zoomed block keeps its size, so closing doesn't jump - #11
Conversation
The zoomed copy sits in the dialog, so it took the dialog's font and line height and reflowed to another height; the original then took its place on the last frame. The copy now inherits the page's text styles. Annotate screenshots zoom inside a copy of their .ca wrapper, so styles set on it reach the zoomed view.
|
This repo's model isn't fully set up yet. OpenAI-compatible model selected but required configuration is missing: OPENAI_COMPATIBLE_API_KEY. only the API key is sensitive — add it as a secret at https://github.com/onmax/comark-plugins/settings/secrets/actions. everything else is plain workflow OPENAI_COMPATIBLE_BASE_URL: https://your-endpoint.example.com/v1 set the last two to the real limits of the model your endpoint serves. Pullfrog can't for full setup instructions, see https://docs.pullfrog.com/openai-compatible
|
|
This repo's model isn't fully set up yet. OpenAI-compatible model selected but required configuration is missing: OPENAI_COMPATIBLE_API_KEY. only the API key is sensitive — add it as a secret at https://github.com/onmax/comark-plugins/settings/secrets/actions. everything else is plain workflow OPENAI_COMPATIBLE_BASE_URL: https://your-endpoint.example.com/v1 set the last two to the real limits of the model your endpoint serves. Pullfrog can't for full setup instructions, see https://docs.pullfrog.com/openai-compatible
|
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
- Going back restored the scroll position saved when the zoom opened. A click during a smooth scroll left the page moving under the zoom, so closing jumped it back by the distance it had scrolled. Scroll restoration is off while the zoom holds a history entry, and opening stops a scroll under way. - A close during the opening animation measured the frame mid-flight and landed off the item. It now measures the settled frame and starts from where the frame is. - The animations aim at the copy's center, not the frame's, since margins inside the copy can sit in the frame but outside the item on the page. - A length line-height is passed on as a length, and a ratio as a ratio. - The zoomed copy keeps the dialog's color inside a data-zoom-context shell.
|
This repo's model isn't fully set up yet. OpenAI-compatible model selected but required configuration is missing: OPENAI_COMPATIBLE_API_KEY. only the API key is sensitive — add it as a secret at https://github.com/onmax/comark-plugins/settings/secrets/actions. everything else is plain workflow OPENAI_COMPATIBLE_BASE_URL: https://your-endpoint.example.com/v1 set the last two to the real limits of the model your endpoint serves. Pullfrog can't for full setup instructions, see https://docs.pullfrog.com/openai-compatible
|
…restoration
- Important inline styles keep host rules such as `span { line-height: 1.2 }` from fooling the probe or putting it
in the page's layout.
- Scroll restoration goes back to its setting however the zoom closes, including stop() while it's open and a
host that replaced the zoom's history state.
|
This repo's model isn't fully set up yet. OpenAI-compatible model selected but required configuration is missing: OPENAI_COMPATIBLE_API_KEY. only the API key is sensitive — add it as a secret at https://github.com/onmax/comark-plugins/settings/secrets/actions. everything else is plain workflow OPENAI_COMPATIBLE_BASE_URL: https://your-endpoint.example.com/v1 set the last two to the real limits of the model your endpoint serves. Pullfrog can't for full setup instructions, see https://docs.pullfrog.com/openai-compatible
|
Latest result Pull request merged. Final answersSession Pull request merged. Session Fixed preview-package builds by explicitly building workspace dependencies before carousel and annotate prepack. The publish failure was a real P1 ordering defect; zoom builds successfully locally, while local packing is blocked by the sandbox’s Corepack filesystem restriction. Pullfrog configuration comments are external setup issues and require no code change. Session Fixed preview-package builds by explicitly building workspace dependencies before carousel and annotate prepack. The publish failure was a real P1 ordering defect; zoom builds successfully locally, while local packing is blocked by the sandbox’s Corepack filesystem restriction. Pullfrog configuration comments are external setup issues and require no code change. Session Fixed preview-package builds by explicitly building workspace dependencies before carousel and annotate prepack. The publish failure was a real P1 ordering defect; zoom builds successfully locally, while local packing is blocked by the sandbox’s Corepack filesystem restriction. Pullfrog configuration comments are external setup issues and require no code change. Session Fixed preview-package builds by explicitly building workspace dependencies before carousel and annotate prepack. The publish failure was a real P1 ordering defect; zoom builds successfully locally, while local packing is blocked by the sandbox’s Corepack filesystem restriction. Pullfrog configuration comments are external setup issues and require no code change. Session Fixed preview-package builds by explicitly building workspace dependencies before carousel and annotate prepack. The publish failure was a real P1 ordering defect; zoom builds successfully locally, while local packing is blocked by the sandbox’s Corepack filesystem restriction. Pullfrog configuration comments are external setup issues and require no code change. Session Fixed preview-package builds by explicitly building workspace dependencies before carousel and annotate prepack. The publish failure was a real P1 ordering defect; zoom builds successfully locally, while local packing is blocked by the sandbox’s Corepack filesystem restriction. Pullfrog configuration comments are external setup issues and require no code change. Session Fixed preview-package builds by explicitly building workspace dependencies before carousel and annotate prepack. The publish failure was a real P1 ordering defect; zoom builds successfully locally, while local packing is blocked by the sandbox’s Corepack filesystem restriction. Pullfrog configuration comments are external setup issues and require no code change. Session Fixed preview-package builds by explicitly building workspace dependencies before carousel and annotate prepack. The publish failure was a real P1 ordering defect; zoom builds successfully locally, while local packing is blocked by the sandbox’s Corepack filesystem restriction. Pullfrog configuration comments are external setup issues and require no code change. Fixed preview-package builds by explicitly building workspace dependencies before carousel and annotate prepack. The publish failure was a real P1 ordering defect; zoom builds successfully locally, while local packing is blocked by the sandbox’s Corepack filesystem restriction. Pullfrog configuration comments are external setup issues and require no code change. |
commit: |
…abindex, and port #11's probe and scroll fixes - A MutationObserver, disconnected by stop(), takes the tab stop off items nested in another one as they appear, so apps that render after mount and client-side navigation get one stop per item. Only tabindex="0" goes; any other value is the author's. - A large image that finishes loading after the view closed or moved on changes nothing. - Port c69e187: the line-height probe uses important inline styles, and scroll restoration goes back however the zoom closes, including stop() while it's open.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
The incremental delta adds dependency-aware prepack build ordering for the publishable workspace packages.
- Built workspace dependencies before packing — Updated
comark-carouselto buildcomark-zoomfirst, andcomark-annotateto buildcomark-zoom,comark-carousel, and then itself. The commands invokebuilddirectly, so they do not recurse throughprepack.
pnpm --filter comark-annotate pack --dry-run completed successfully, including builds for all three packages, and publint reported no issues.
gpt-5.6-sol | 𝕏
…abindex, and port #11's probe and scroll fixes - A MutationObserver, disconnected by stop(), takes the tab stop off items nested in another one as they appear, so apps that render after mount and client-side navigation get one stop per item. Only tabindex="0" goes; any other value is the author's. - A large image that finishes loading after the view closed or moved on changes nothing. - Port c69e187: the line-height probe uses important inline styles, and scroll restoration goes back however the zoom closes, including stop() while it's open.
… data-zoom-src behind the page image (#16) Also carries #11's last review fixes: stop() closes without going back in history, and a zoom opened while another closes keeps scroll restoration off. BREAKING CHANGE: the `--cz-*` variables are gone; set the `--comark-*` tokens on `.cz-dialog` to theme only the zoomed view. BREAKING CHANGE: the thumbnail strip is `role="group"`, `::zoom` passes only `id` and `class` through, `data-zoom=false` opts out, and images zoom no further than their natural size. BREAKING CHANGE: the self-contained browser function moved to `src/script.ts`; `start()` from `comark-zoom/client` now adds the bundled styles by default.

On https://comark.onmax.me/zoom/, closing a zoomed block jumped on the last frame.
The zoomed copy sits in the dialog, so it took the dialog's text styles (13px/1.4, system font) instead of the page's (15px/1.7 Geist). The "Retry policy" table zoomed at 159px tall; its original is 176px, and it took the copy's place on the last frame.
.cawrapper (data-zoom-context=".ca"), so styles set on it reach the zoomed view. On the docs, labels kept their Caveat font and size instead of shrinking to 11px Geist.Every zoomable item on the zoom and annotate pages now has the same size zoomed as on the page. A new e2e test fails on the old code (176 vs 159) and passes now.
pnpm readyand the e2e tests pass.After review, the PR also fixes jumps that weren't about text styles:
shut()measured the frame mid-flight and landed 58px left and 183px above the item. It now measures the settled frame and starts from where the frame is.16px/24px) keeps it as a length. The copy keeps the dialog's color inside adata-zoom-contextshell.A new e2e test compares the copy's box with the original's on the last frame of the close, for the docs table and for a block with a length line-height and paragraph margins.
🤖 Generated with Claude Code