added flexibility to add non-ascii letter or spaces in username

This commit is contained in:
Monojit Tewari committed 2025-02-26 16:05:41 +05:30
1 parent 372b673886
commit f1cf836bdc
1 file changed
+20 -2
+20 -2
View File
@@ -628,10 +628,19 @@ function Sidebar() {
) : ( ) : (
<> <>
<Avatar small={true} /> <Avatar small={true} />
<Box ml={theme.spacing(2)}> <Box
ml={theme.spacing(2)}
sx={{ maxWidth: "150px", overflow: "hidden" }}
>
<Typography <Typography
component="span" component="span"
fontWeight={500} fontWeight={500}
sx={{
display: "block",
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis",
}}
> >
{authState.user?.firstName} {authState.user?.lastName} {authState.user?.firstName} {authState.user?.lastName}
</Typography> </Typography>
@@ -707,11 +716,20 @@ function Sidebar() {
> >
{collapsed && ( {collapsed && (
<MenuItem sx={{ cursor: "default", minWidth: "150px" }}> <MenuItem sx={{ cursor: "default", minWidth: "150px" }}>
<Box mb={theme.spacing(2)}> <Box
mb={theme.spacing(2)}
sx={{ maxWidth: "150px", overflow: "hidden" }}
>
<Typography <Typography
component="span" component="span"
fontWeight={500} fontWeight={500}
fontSize={13} fontSize={13}
sx={{
display: "block",
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis",
}}
> >
{authState.user?.firstName} {authState.user?.lastName} {authState.user?.firstName} {authState.user?.lastName}
</Typography> </Typography>