0
Fork 0
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:
Wang Sijie 2022-05-25 16:35:49 +08:00 committed by GitHub
parent 281d6693d4
commit d8c8c041b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -29,8 +29,8 @@
display: flex;
align-items: center;
> *:not(:first-child) {
margin-left: _.unit(2);
> *:not(:last-child) {
margin-right: _.unit(2);
}
}

View file

@ -121,8 +121,12 @@ const UserDetails = () => {
<div className={styles.metadata}>
<div className={styles.name}>{data.name ?? '-'}</div>
<div>
{data.username && (
<>
<div className={styles.username}>{data.username}</div>
<div className={styles.verticalBar} />
</>
)}
<div className={styles.text}>User ID</div>
<CopyToClipboard value={data.id} className={styles.copy} />
</div>