mirror of
https://github.com/mfocko/blog.git
synced 2024-11-22 04:53:47 +01:00
fix(ThemedSVG): revert to ‹img› from embed
Causes weird rendering issues Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
efbc857e77
commit
2d231e25a8
1 changed files with 3 additions and 5 deletions
|
@ -9,16 +9,14 @@ export default function ThemedSVG(props): JSX.Element {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<embed
|
<img
|
||||||
className={clsx("light-mode-only", parentClassName, styles.themed_svg)}
|
className={clsx("light-mode-only", parentClassName, styles.themed_svg)}
|
||||||
type="image/svg+xml"
|
|
||||||
src={`${source}_light.svg`}
|
src={`${source}_light.svg`}
|
||||||
/>
|
/>
|
||||||
<embed
|
<img
|
||||||
className={clsx("dark-mode-only", parentClassName, styles.themed_svg)}
|
className={clsx("dark-mode-only", parentClassName, styles.themed_svg)}
|
||||||
type="image/svg+xml"
|
|
||||||
src={`${source}_dark.svg`}
|
src={`${source}_dark.svg`}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue