mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
fix(console): hide split line when username is empty (#949)
This commit is contained in:
parent
281d6693d4
commit
d8c8c041b9
2 changed files with 8 additions and 4 deletions
|
@ -29,8 +29,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
> *:not(:first-child) {
|
> *:not(:last-child) {
|
||||||
margin-left: _.unit(2);
|
margin-right: _.unit(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,8 +121,12 @@ const UserDetails = () => {
|
||||||
<div className={styles.metadata}>
|
<div className={styles.metadata}>
|
||||||
<div className={styles.name}>{data.name ?? '-'}</div>
|
<div className={styles.name}>{data.name ?? '-'}</div>
|
||||||
<div>
|
<div>
|
||||||
|
{data.username && (
|
||||||
|
<>
|
||||||
<div className={styles.username}>{data.username}</div>
|
<div className={styles.username}>{data.username}</div>
|
||||||
<div className={styles.verticalBar} />
|
<div className={styles.verticalBar} />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<div className={styles.text}>User ID</div>
|
<div className={styles.text}>User ID</div>
|
||||||
<CopyToClipboard value={data.id} className={styles.copy} />
|
<CopyToClipboard value={data.id} className={styles.copy} />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue