Skip to content

[6.x] Force full width on asset grid to account for smaller SVGs#14164

Merged
jaygeorge merged 1 commit into6.xfrom
fix-smaller-svg-widths-in-asset-grid
Mar 6, 2026
Merged

[6.x] Force full width on asset grid to account for smaller SVGs#14164
jaygeorge merged 1 commit into6.xfrom
fix-smaller-svg-widths-in-asset-grid

Conversation

@jaygeorge
Copy link
Contributor

Description of the Problem

When you have small SVGs in the asset grid the shadow container does not expand to take up the container width, like this:

Notice the shadows underneath the SVGs
2026-03-06 at 12 37 43@2x

What this PR Does

Expands the parent container of the SVG that contains the shadow

Here it is with the fix:
2026-03-06 at 12 39 04@2x

How to Reproduce

  1. Upload a small logo such as the Facebook "F" to an assets field with a grid UI

@jaygeorge jaygeorge merged commit 04c623e into 6.x Mar 6, 2026
18 checks passed
@jaygeorge jaygeorge deleted the fix-smaller-svg-widths-in-asset-grid branch March 6, 2026 13:09
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