auth footer styling
This commit is contained in:
1 parent
b61a7ffc3c
commit
2d01205f70
2 files changed
+19
-19
No files matched your search
@@ -88,25 +88,17 @@ 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"
|
|
||||||
alignItems="center"
|
|
||||||
sx={{
|
|
||||||
whiteSpace: "nowrap",
|
|
||||||
overflow: "hidden",
|
|
||||||
maxWidth: collapsed ? 0 : 400,
|
|
||||||
transition: "max-width 300ms ease, opacity 300ms ease",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Box
|
|
||||||
ml={theme.spacing(2)}
|
ml={theme.spacing(2)}
|
||||||
sx={{ maxWidth: "50%", overflow: "hidden" }}
|
sx={{ maxWidth: "50%", overflow: "hidden" }}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
component="span"
|
color={theme.palette.primary.contrastText}
|
||||||
fontWeight={500}
|
fontWeight={500}
|
||||||
|
lineHeight={1}
|
||||||
|
fontSize={"var(--env-var-font-size-medium)"}
|
||||||
sx={{
|
sx={{
|
||||||
display: "block",
|
display: "block",
|
||||||
whiteSpace: "nowrap",
|
whiteSpace: "nowrap",
|
||||||
@@ -116,7 +108,14 @@ const AuthFooter = ({ collapsed, accountMenuItems }) => {
|
|||||||
>
|
>
|
||||||
{authState.user?.firstName} {authState.user?.lastName}
|
{authState.user?.firstName} {authState.user?.lastName}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography sx={{ textTransform: "capitalize" }}>
|
<Typography
|
||||||
|
color={theme.palette.primary.contrastText}
|
||||||
|
fontSize={"var(--env-var-font-size-small)"}
|
||||||
|
textOverflow="ellipsis"
|
||||||
|
overflow="hidden"
|
||||||
|
whiteSpace="nowrap"
|
||||||
|
sx={{ textTransform: "capitalize", opacity: 0.8 }}
|
||||||
|
>
|
||||||
{authState.user?.role?.includes("superadmin")
|
{authState.user?.role?.includes("superadmin")
|
||||||
? t("roles.superAdmin")
|
? t("roles.superAdmin")
|
||||||
: authState.user?.role?.includes("admin")
|
: authState.user?.role?.includes("admin")
|
||||||
@@ -127,12 +126,15 @@ const AuthFooter = ({ collapsed, accountMenuItems }) => {
|
|||||||
? t("roles.demoUser")
|
? t("roles.demoUser")
|
||||||
: authState.user?.role}
|
: authState.user?.role}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Stack>
|
||||||
<Stack
|
<Stack
|
||||||
className="sidebar-delay-fade"
|
direction="row"
|
||||||
flexDirection={"row"}
|
|
||||||
marginLeft={"auto"}
|
|
||||||
columnGap={theme.spacing(2)}
|
columnGap={theme.spacing(2)}
|
||||||
|
sx={{
|
||||||
|
opacity: collapsed ? 0 : 1,
|
||||||
|
transition: "opacity 300ms ease",
|
||||||
|
transitionDelay: collapsed ? "0ms" : "300ms",
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<ThemeSwitch color={theme.palette.primary.contrastTextTertiary} />
|
<ThemeSwitch color={theme.palette.primary.contrastTextTertiary} />
|
||||||
<Tooltip
|
<Tooltip
|
||||||
@@ -162,8 +164,6 @@ const AuthFooter = ({ collapsed, accountMenuItems }) => {
|
|||||||
</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