From fc0f3bf589904fa98583bec0997b345c520678bc Mon Sep 17 00:00:00 2001 From: kavics Date: Wed, 11 Oct 2023 09:31:32 +0200 Subject: [PATCH] LoginName in user menu. (#1545) --- .../src/components/appbar/desktop-nav-menu.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/sensenet/src/components/appbar/desktop-nav-menu.tsx b/apps/sensenet/src/components/appbar/desktop-nav-menu.tsx index edded027f..cf318c1de 100644 --- a/apps/sensenet/src/components/appbar/desktop-nav-menu.tsx +++ b/apps/sensenet/src/components/appbar/desktop-nav-menu.tsx @@ -153,12 +153,22 @@ export const DesktopNavMenu: FunctionComponent = () => { style: { overflow: 'hidden', textOverflow: 'ellipsis', - marginLeft: '30px', + marginLeft: '20px', color: theme.palette.type === 'light' ? globals.light.textColor : globals.dark.textColor, }, - title: currentUser.DisplayName || currentUser.Name, + title: `Full-name: ${currentUser.DisplayName}` || currentUser.Name, + }} + secondaryTypographyProps={{ + style: { + overflow: 'hidden', + textOverflow: 'ellipsis', + marginLeft: '20px', + color: theme.palette.type === 'light' ? globals.light.textColor : globals.dark.textColor, + }, + title: `Login-name: ${currentUser.LoginName}` || currentUser.Name, }} primary={`${currentUser.DisplayName || currentUser.Name}`} + secondary={`${currentUser.LoginName || currentUser.Name}`} />