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:
parent
b78a9cf82e
commit
ad769cd4a8
3 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,9 @@
|
||||||
|
@use '@/scss/underscore' as _;
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
background: rgba(#ffcc4d, 0.3);
|
background: rgba(#ffcc4d, 0.3);
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
padding: _.unit(2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,11 +14,11 @@ const ImagePlaceholder = ({ size = 40, borderRadius = 8 }: Props) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.container} style={{ width: size, height: size, borderRadius }}>
|
<div className={styles.container} style={{ borderRadius }}>
|
||||||
<img
|
<img
|
||||||
alt={t('general.placeholder')}
|
alt={t('general.placeholder')}
|
||||||
src={defaultPlaceholder}
|
src={defaultPlaceholder}
|
||||||
style={{ width: size, height: size }}
|
style={{ width: size - 16, height: size - 16 }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -4,7 +4,7 @@ a.link {
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
width: 50px;
|
width: 40px;
|
||||||
height: 50px;
|
height: 40px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue