auth footer styling
This commit is contained in:
1 parent
b61a7ffc3c
commit
2d01205f70
2 files changed
+70
-70
No files matched your search
@@ -88,82 +88,82 @@ const AuthFooter = ({ collapsed, accountMenuItems }) => {
|
|||||||
gap={theme.spacing(2)}
|
gap={theme.spacing(2)}
|
||||||
borderRadius={theme.shape.borderRadius}
|
borderRadius={theme.shape.borderRadius}
|
||||||
>
|
>
|
||||||
<>
|
<Avatar small={true} />
|
||||||
<Avatar small={true} />
|
|
||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
ml={theme.spacing(2)}
|
||||||
alignItems="center"
|
sx={{ maxWidth: "50%", overflow: "hidden" }}
|
||||||
|
>
|
||||||
|
<Typography
|
||||||
|
color={theme.palette.primary.contrastText}
|
||||||
|
fontWeight={500}
|
||||||
|
lineHeight={1}
|
||||||
|
fontSize={"var(--env-var-font-size-medium)"}
|
||||||
sx={{
|
sx={{
|
||||||
|
display: "block",
|
||||||
whiteSpace: "nowrap",
|
whiteSpace: "nowrap",
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
maxWidth: collapsed ? 0 : 400,
|
textOverflow: "ellipsis",
|
||||||
transition: "max-width 300ms ease, opacity 300ms ease",
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box
|
{authState.user?.firstName} {authState.user?.lastName}
|
||||||
ml={theme.spacing(2)}
|
</Typography>
|
||||||
sx={{ maxWidth: "50%", overflow: "hidden" }}
|
<Typography
|
||||||
>
|
color={theme.palette.primary.contrastText}
|
||||||
<Typography
|
fontSize={"var(--env-var-font-size-small)"}
|
||||||
component="span"
|
textOverflow="ellipsis"
|
||||||
fontWeight={500}
|
overflow="hidden"
|
||||||
sx={{
|
whiteSpace="nowrap"
|
||||||
display: "block",
|
sx={{ textTransform: "capitalize", opacity: 0.8 }}
|
||||||
whiteSpace: "nowrap",
|
>
|
||||||
overflow: "hidden",
|
{authState.user?.role?.includes("superadmin")
|
||||||
textOverflow: "ellipsis",
|
? t("roles.superAdmin")
|
||||||
}}
|
: authState.user?.role?.includes("admin")
|
||||||
>
|
? t("roles.admin")
|
||||||
{authState.user?.firstName} {authState.user?.lastName}
|
: authState.user?.role?.includes("user")
|
||||||
</Typography>
|
? t("roles.teamMember")
|
||||||
<Typography sx={{ textTransform: "capitalize" }}>
|
: authState.user?.role?.includes("demo")
|
||||||
{authState.user?.role?.includes("superadmin")
|
? t("roles.demoUser")
|
||||||
? t("roles.superAdmin")
|
: authState.user?.role}
|
||||||
: authState.user?.role?.includes("admin")
|
</Typography>
|
||||||
? t("roles.admin")
|
</Stack>
|
||||||
: authState.user?.role?.includes("user")
|
<Stack
|
||||||
? t("roles.teamMember")
|
direction="row"
|
||||||
: authState.user?.role?.includes("demo")
|
columnGap={theme.spacing(2)}
|
||||||
? t("roles.demoUser")
|
sx={{
|
||||||
: authState.user?.role}
|
opacity: collapsed ? 0 : 1,
|
||||||
</Typography>
|
transition: "opacity 300ms ease",
|
||||||
</Box>
|
transitionDelay: collapsed ? "0ms" : "300ms",
|
||||||
<Stack
|
}}
|
||||||
className="sidebar-delay-fade"
|
>
|
||||||
flexDirection={"row"}
|
<ThemeSwitch color={theme.palette.primary.contrastTextTertiary} />
|
||||||
marginLeft={"auto"}
|
<Tooltip
|
||||||
columnGap={theme.spacing(2)}
|
title={t("navControls")}
|
||||||
>
|
disableInteractive
|
||||||
<ThemeSwitch color={theme.palette.primary.contrastTextTertiary} />
|
>
|
||||||
<Tooltip
|
<IconButton
|
||||||
title={t("navControls")}
|
sx={{
|
||||||
disableInteractive
|
ml: "auto",
|
||||||
>
|
mr: "-8px",
|
||||||
<IconButton
|
"&:focus": { outline: "none" },
|
||||||
sx={{
|
alignSelf: "center",
|
||||||
ml: "auto",
|
padding: "10px",
|
||||||
mr: "-8px",
|
|
||||||
"&:focus": { outline: "none" },
|
|
||||||
alignSelf: "center",
|
|
||||||
padding: "10px",
|
|
||||||
|
|
||||||
"& svg": {
|
"& svg": {
|
||||||
width: "22px",
|
width: "22px",
|
||||||
height: "22px",
|
height: "22px",
|
||||||
},
|
},
|
||||||
"& svg path": {
|
"& svg path": {
|
||||||
/* Vertical three dots */
|
/* Vertical three dots */
|
||||||
stroke: theme.palette.primary.contrastTextTertiary,
|
stroke: theme.palette.primary.contrastTextTertiary,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
onClick={(event) => openPopup(event, "logout")}
|
onClick={(event) => openPopup(event, "logout")}
|
||||||
>
|
>
|
||||||
<DotsVertical />
|
<DotsVertical />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
|
||||||
</>
|
|
||||||
<Menu
|
<Menu
|
||||||
className="sidebar-popup"
|
className="sidebar-popup"
|
||||||
anchorEl={anchorEl}
|
anchorEl={anchorEl}
|
||||||
|
|||||||
File renamed without changes.
Reference in new issue
Block a user