fix: display empty circle when no photo is provided
This commit is contained in:
parent
a85c0e609a
commit
14056701d0
2 changed files with 10 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ export const ContactPersonCard = ({
|
||||||
return (
|
return (
|
||||||
<div className={styles.card}>
|
<div className={styles.card}>
|
||||||
<div>
|
<div>
|
||||||
{photo && (
|
{photo ? (
|
||||||
<Image
|
<Image
|
||||||
className={styles.photo}
|
className={styles.photo}
|
||||||
src={photo}
|
src={photo}
|
||||||
|
|
@ -40,6 +40,8 @@ export const ContactPersonCard = ({
|
||||||
height={200}
|
height={200}
|
||||||
unoptimized={true}
|
unoptimized={true}
|
||||||
/>
|
/>
|
||||||
|
) : (
|
||||||
|
<div className={styles.photoPlaceholder} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,13 @@
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.photoPlaceholder {
|
||||||
|
width: 200px;
|
||||||
|
height: 200px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: #efefef;
|
||||||
|
}
|
||||||
|
|
||||||
.role {
|
.role {
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
color: $base-color;
|
color: $base-color;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue