0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-27 21:39:16 -05:00

fix(console): fix placeholder image padding (#512)

This commit is contained in:
Wang Sijie 2022-04-08 11:20:34 +08:00 committed by GitHub
parent b78a9cf82e
commit ad769cd4a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -1,6 +1,9 @@
@use '@/scss/underscore' as _;
.container {
background: rgba(#ffcc4d, 0.3);
display: flex;
justify-content: center;
align-items: center;
padding: _.unit(2);
}

View file

@ -14,11 +14,11 @@ const ImagePlaceholder = ({ size = 40, borderRadius = 8 }: Props) => {
const { t } = useTranslation();
return (
<div className={styles.container} style={{ width: size, height: size, borderRadius }}>
<div className={styles.container} style={{ borderRadius }}>
<img
alt={t('general.placeholder')}
src={defaultPlaceholder}
style={{ width: size, height: size }}
style={{ width: size - 16, height: size - 16 }}
/>
</div>
);

View file

@ -4,7 +4,7 @@ a.link {
}
.logo {
width: 50px;
height: 50px;
width: 40px;
height: 40px;
border-radius: 5px;
}