Skip to content

Commit

Permalink
Fix svg thumbnail size
Browse files Browse the repository at this point in the history
We need to use the contains attribute selector here, because
the url has a sha (for DDOS protection) and optionally other
parameters at the end of the url.

(cherry picked from commit c08935e)
  • Loading branch information
tvdeyen committed Feb 23, 2024
1 parent 9a0d373 commit b0d7102
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 b0d7102

Please sign in to comment.