aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components/CurrentIdentity/CurrentIdentity.tsx
diff options
context:
space:
mode:
authorLena <lena.becker-3@mni.thm.de>2021-03-18 23:57:14 +0100
committerSascha <GlancingMind@outlook.com>2021-04-13 19:07:57 +0200
commitba893ee5539c29b3e760ea994208afaa70913512 (patch)
tree074f6af2a5a6184ee0866854f5a6602736c961af /webui/src/components/CurrentIdentity/CurrentIdentity.tsx
parentcf1e13b6837d6dda794b9c0dca5af1bb8e095794 (diff)
downloadgit-bug-ba893ee5539c29b3e760ea994208afaa70913512.tar.gz
Style user site and adjust popup button #12
Diffstat (limited to 'webui/src/components/CurrentIdentity/CurrentIdentity.tsx')
-rw-r--r--webui/src/components/CurrentIdentity/CurrentIdentity.tsx11
1 files changed, 6 insertions, 5 deletions
diff --git a/webui/src/components/CurrentIdentity/CurrentIdentity.tsx b/webui/src/components/CurrentIdentity/CurrentIdentity.tsx
index f3dff5ed..b68b84e5 100644
--- a/webui/src/components/CurrentIdentity/CurrentIdentity.tsx
+++ b/webui/src/components/CurrentIdentity/CurrentIdentity.tsx
@@ -26,6 +26,9 @@ const useStyles = makeStyles((theme) => ({
profileLink: {
...theme.typography.button,
},
+ popupButton: {
+ textTransform: 'none',
+ },
}));
const CurrentIdentity = () => {
@@ -57,15 +60,14 @@ const CurrentIdentity = () => {
aria-controls={open ? 'menu-list-grow' : undefined}
aria-haspopup="true"
onClick={handleToggle}
+ className={classes.popupButton}
>
<Avatar src={user.avatarUrl ? user.avatarUrl : undefined}>
{user.displayName.charAt(0).toUpperCase()}
</Avatar>
+ <div className={classes.displayName}>{user.displayName}</div>
+ <LockIcon color="secondary" className={user.isProtected ? '' : ''} />
</Button>
- <LockIcon
- color="secondary"
- className={user.isProtected ? '' : classes.hidden}
- />
<Popper
open={open}
anchorEl={anchorRef.current}
@@ -99,7 +101,6 @@ const CurrentIdentity = () => {
</Grow>
)}
</Popper>
- <div className={classes.displayName}>{user.displayName}</div>
</>
);
};