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.
  • Loading branch information
tvdeyen committed Feb 23, 2024
1 parent ec9426e commit c08935e
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 c08935e

Please sign in to comment.