feat(custom-logo): constraint svg logo dimensions (#1243)

This commit is contained in:
Rıdvan Akca
2023-08-25 22:43:53 +03:00
committed by GitHub
parent a3b3038709
commit 823d85b24a
2 changed files with 10 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import useConfig from 'hooks/useConfig';
import { LogoImage } from './style.ee';
const CustomLogo = () => {
const { config, loading } = useConfig(['logo.svgData']);
@@ -8,7 +9,7 @@ const CustomLogo = () => {
const logoSvgData = config['logo.svgData'] as string;
return (
<img
<LogoImage
data-test="custom-logo"
src={`data:image/svg+xml;utf8,${encodeURIComponent(logoSvgData)}`}
/>