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 {
|
||||
background: rgba(#ffcc4d, 0.3);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: _.unit(2);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -4,7 +4,7 @@ a.link {
|
|||
}
|
||||
|
||||
.logo {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue