From 11929a9f32885955e535d0d9a3c432851cbb2b30 Mon Sep 17 00:00:00 2001 From: Juan Aldasoro Date: Thu, 31 Oct 2024 16:51:28 +0100 Subject: [PATCH] Set the `fit-content` width for images that are not `.svg` --- packages/block-library/src/image/style.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/image/style.scss b/packages/block-library/src/image/style.scss index da4ccc50dac7f..79689e82006cd 100644 --- a/packages/block-library/src/image/style.scss +++ b/packages/block-library/src/image/style.scss @@ -9,7 +9,10 @@ max-width: 100%; vertical-align: bottom; box-sizing: border-box; - width: fit-content; + + &:not([src$=".svg"]) { + width: fit-content; + } @media (prefers-reduced-motion: no-preference) { &.hide {