Skip to content

Fix extra margin-top in Quick Look#127

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

Fix extra margin-top in Quick Look#127
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

This PR adjusts the Quick Look overlay layout to remove unintended extra top spacing by shifting the rendered content upward beneath the fixed toolbar while preserving the scroll/bounce behavior within the pane.

Changes:

  • Apply a negative margin-top to .quicklook-content (scaled to match zoom) so content sits under the toolbar.
  • Increase .quicklook-content min-height to compensate for the negative margin, keeping overscroll/bounce contained in the pane.
  • Propagate the same CSS change into the committed dist/ and dist/lite/ bundles.

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.

File Description
styles/quicklook.css Adjusts Quick Look content positioning and height to eliminate extra top spacing while maintaining scroll bounce behavior.
dist/markedit-preview.js Updates embedded CSS in the full bundled build to match the Quick Look layout fix.
dist/lite/markedit-preview.js Updates embedded CSS in the lite bundled build to match the Quick Look layout fix.

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

@cyanzhong cyanzhong merged commit 5188dbd into main Jun 7, 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