From d7b880d20da54602336cdd9f532e58154828b3d4 Mon Sep 17 00:00:00 2001 From: Sascha Karnatz <122262394+sascha-karnatz@users.noreply.github.com> Date: Tue, 12 Mar 2024 08:37:08 +0100 Subject: [PATCH] Fix SVG Preview size The URL of the SVG preview normally don't have an SVG extension, but it contains svg in the given asset URL. There is a (rare) possibility, that the asset hash of a non-SVG image will also contain that three characters, but it does not seem like a big deal, because it would only increase the height of outer container. --- app/assets/stylesheets/alchemy/archive.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/stylesheets/alchemy/archive.scss b/app/assets/stylesheets/alchemy/archive.scss index 6979addeaf..9b814cad86 100644 --- a/app/assets/stylesheets/alchemy/archive.scss +++ b/app/assets/stylesheets/alchemy/archive.scss @@ -74,7 +74,7 @@ background: $thumbnail-background; } - &[src*=".svg"]:not([src*="alchemy/missing-image"]) { + &[src*="svg"]:not([src*="alchemy/missing-image"]) { width: var(--picture-width); max-height: var(--picture-height); }