Skip to content

Commit

Permalink
change arrangement of elements of user accodrion in mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintShit committed May 1, 2023
1 parent 672e112 commit 613f1a3
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 54 deletions.
2 changes: 1 addition & 1 deletion app/dashboard/build/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<meta name="msapplication-TileColor" content="#2b5797" />
<meta name="msapplication-config" content="/favicon/browserconfig.xml" />
<meta name="theme-color" content="#3B81F6" />
<script type="module" crossorigin src="/dashboard/assets/index.56da4779.js"></script>
<script type="module" crossorigin src="/dashboard/assets/index.31644f25.js"></script>
<link rel="modulepreload" crossorigin href="/dashboard/assets/vendor.8e672767.js">
<link rel="stylesheet" href="/dashboard/assets/index.16216361.css">
</head>
Expand Down
3 changes: 3 additions & 0 deletions app/dashboard/build/assets/index.31644f25.js

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions app/dashboard/build/assets/index.56da4779.js

This file was deleted.

2 changes: 1 addition & 1 deletion app/dashboard/build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<meta name="msapplication-TileColor" content="#2b5797" />
<meta name="msapplication-config" content="/favicon/browserconfig.xml" />
<meta name="theme-color" content="#3B81F6" />
<script type="module" crossorigin src="/dashboard/assets/index.56da4779.js"></script>
<script type="module" crossorigin src="/dashboard/assets/index.31644f25.js"></script>
<link rel="modulepreload" crossorigin href="/dashboard/assets/vendor.8e672767.js">
<link rel="stylesheet" href="/dashboard/assets/index.16216361.css">
</head>
Expand Down
81 changes: 32 additions & 49 deletions app/dashboard/src/components/UsersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ const UsageSlider: FC<UsageSliderProps> = (props) => {
formatBytes(total) +
(dataLimitResetStrategy && dataLimitResetStrategy !== "no_reset"
? " " +
t(
"userDialog.resetStrategy" +
getResetStrategy(dataLimitResetStrategy)
)
t(
"userDialog.resetStrategy" +
getResetStrategy(dataLimitResetStrategy)
)
: "")
)}
</Text>
Expand Down Expand Up @@ -343,30 +343,6 @@ export const UsersTable: FC<UsersTableProps> = (props) => {
py={3}
>
<VStack justifyContent="space-between" spacing="4">
<VStack
alignItems="flex-start"
w="full"
spacing={2}
>
<Text
textTransform="capitalize"
fontSize="xs"
fontWeight="bold"
color="gray.600"
_dark={{
color: "gray.400",
}}
>
{t("usersTable.status")}
</Text>
<Box width="full" minW="230px">
<StatusBadge
compact
expiryDate={user.expire}
status={user.status}
/>
</Box>
</VStack>
<VStack
alignItems="flex-start"
w="full"
Expand Down Expand Up @@ -400,29 +376,36 @@ export const UsersTable: FC<UsersTableProps> = (props) => {
</Box>
</VStack>
<HStack w="full" justifyContent="space-between">
<Box>
<ActionButtons user={user} />
<Box width="full" minW="230px">
<StatusBadge
compact
expiryDate={user.expire}
status={user.status}
/>
</Box>
<Tooltip
label={t("userDialog.editUser")}
placement="top"
>
<IconButton
aria-label="Edit user"
bg="transparent"
_dark={{
_hover: {
bg: "gray.700",
},
}}
onClick={(e) => {
e.stopPropagation();
onEditingUser(user);
}}
<HStack>
<ActionButtons user={user} />
<Tooltip
label={t("userDialog.editUser")}
placement="top"
>
<EditIcon />
</IconButton>
</Tooltip>
<IconButton
aria-label="Edit user"
bg="transparent"
_dark={{
_hover: {
bg: "gray.700",
},
}}
onClick={(e) => {
e.stopPropagation();
onEditingUser(user);
}}
>
<EditIcon />
</IconButton>
</Tooltip>
</HStack>
</HStack>
</VStack>
</AccordionPanel>
Expand Down

0 comments on commit 613f1a3

Please sign in to comment.