fix(ThemedSVG): revert to ‹img› from embed

Causes weird rendering issues

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2023-09-06 18:48:36 +02:00
parent efbc857e77
commit 2d231e25a8
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -9,14 +9,12 @@ 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`}
/>
</>