fix(core): sidebar unauthorized user avatar should center vertically (#7812)

This commit is contained in:
Cats Juice 2024-08-09 16:52:29 +08:00 committed by GitHub
parent d2b0ee40a8
commit e8d5692062
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,12 @@ export const UnknownUserIcon = memo(
</defs>
</svg>`;
return <div dangerouslySetInnerHTML={{ __html: svgRaw }} />;
return (
<div
style={{ lineHeight: 0 }}
dangerouslySetInnerHTML={{ __html: svgRaw }}
/>
);
}
);
UnknownUserIcon.displayName = 'UnknownUserIcon';