Skip to content

Fix content cutting in Quick Look#129

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Jun 8, 2026
Merged

Fix content cutting in Quick Look#129
cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates Quick Look preview layout/interaction so the rendered content no longer gets clipped when zooming, by making the toolbar-clearance offset responsive to the live zoom factor and shipping updated built bundles.

Changes:

  • Adjusted Quick Look CSS to compute toolbar-clearance margin/min-height based on a zoom-tracking CSS variable.
  • Added gesture event handling to keep --quicklook-zoom in sync during pinch zoom.
  • Updated the committed full and lite dist/ bundles to include the changes.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.

File Description
styles/quicklook.css Reworks the toolbar-clearance negative margin and min-height math to account for live zoom.
src/quicklook/interaction.ts Tracks pinch zoom updates via gesture events and writes --quicklook-zoom for the CSS to consume.
dist/markedit-preview.js Regenerated full build bundle with the Quick Look changes.
dist/lite/markedit-preview.js Regenerated lite build bundle with the Quick Look changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/quicklook/interaction.ts
@cyanzhong cyanzhong merged commit b0a9189 into main Jun 8, 2026
2 checks passed
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.

2 participants