Skip to content

[6.x] Don't force an SVG aspect ratio in the asset preview thumbnails#14107

Open
jaygeorge wants to merge 1 commit into6.xfrom
fix-svg-ratio-in-asset-preview-thumbs
Open

[6.x] Don't force an SVG aspect ratio in the asset preview thumbnails#14107
jaygeorge wants to merge 1 commit into6.xfrom
fix-svg-ratio-in-asset-preview-thumbs

Conversation

@jaygeorge
Copy link
Contributor

Description of the Problem

This is related to PR #14003

  • Currently size-something is applied to thumbnail sizes in the asset editor.
  • This forces an aspect ratio on SVGs, which means if they're not square, they get squished—for example, here:

Before

2026-02-28 at 12 23 28@2x

After

2026-02-28 at 12 23 14@2x

What this PR Does

Switches size for a width attribute so the height can be whatever ratio it is naturally

How to Reproduce

  1. Add a landscape logo as an SVG and open it in the asset preview

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.

1 participant