mirror of
https://github.com/mfocko/blog.git
synced 2024-11-21 20:43:48 +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 (
|
||||
<>
|
||||
<embed
|
||||
<img
|
||||
className={clsx("light-mode-only", parentClassName, styles.themed_svg)}
|
||||
type="image/svg+xml"
|
||||
src={`${source}_light.svg`}
|
||||
/>
|
||||
<embed
|
||||
<img
|
||||
className={clsx("dark-mode-only", parentClassName, styles.themed_svg)}
|
||||
type="image/svg+xml"
|
||||
src={`${source}_dark.svg`}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue