Skip to content

Commit

Permalink
Fix SVG Preview size
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sascha-karnatz committed Mar 12, 2024
1 parent 63d5474 commit d7b880d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/alchemy/archive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d7b880d

Please sign in to comment.