Repository navigation
Screenshots keep their proportions - #6
Merged
Merged
Conversation
Docusaurus writes each image's own width and height on the tag, and the max-height on .markdown img held the height down while the width attribute held, so a 360x800 phone screenshot was drawn 358x518 — squashed toward square. width and height auto scale it as a whole.
lana-20
force-pushed
the
screenshot-proportions
branch
from
October 6, 2026 01:23
e02a351 to
d6ec10d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phone screenshots were drawn squashed toward square: a 360×800 shot at 358×518. Docusaurus writes each image's own
widthandheighton the tag, and.markdown imghad only amax-height, so the height was capped while the width attribute held.width: auto; height: auto; max-width: 100%beside the cap scales each image as a whole.Measured in headless Chrome, every image's drawn aspect against its own:
reference/cli/accessibilityandreference/cli/alert: 0 of 72, where the live site had 72 of 72.