mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fix svg loading
This commit is contained in:
parent
8b6b338a47
commit
5fe6d8b869
1 changed files with 8 additions and 1 deletions
|
@ -21,7 +21,14 @@ const NodeImageLazy: FC<NodeImageLazyProps> = ({
|
|||
}) => {
|
||||
if (src?.endsWith('svg')) {
|
||||
return (
|
||||
<img data-src={src} onLoad={onLoad} color={color} alt="" {...rest} />
|
||||
<img
|
||||
src={src}
|
||||
onLoad={onLoad}
|
||||
color={color}
|
||||
alt=""
|
||||
{...rest}
|
||||
loading="lazy"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue