From b1bfb09dfd5c90cc18847470a9ce1ce8397c1476 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Fri, 9 Dec 2022 14:37:09 +0100 Subject: [PATCH] fix: tables on mobile --- .../src/components/admin/AdminConfigTable.tsx | 106 ++++++++++-------- .../src/components/admin/ManageUserTable.tsx | 4 +- 2 files changed, 60 insertions(+), 50 deletions(-) diff --git a/frontend/src/components/admin/AdminConfigTable.tsx b/frontend/src/components/admin/AdminConfigTable.tsx index 1cea978..70a5b1b 100644 --- a/frontend/src/components/admin/AdminConfigTable.tsx +++ b/frontend/src/components/admin/AdminConfigTable.tsx @@ -1,4 +1,12 @@ -import { ActionIcon, Code, Group, Skeleton, Table, Text } from "@mantine/core"; +import { + ActionIcon, + Box, + Code, + Group, + Skeleton, + Table, + Text, +} from "@mantine/core"; import { useModals } from "@mantine/modals"; import { useEffect, useState } from "react"; import { TbEdit, TbLock } from "react-icons/tb"; @@ -43,53 +51,55 @@ const AdminConfigTable = () => { )); return ( - - - - - - - - - - {isLoading - ? skeletonRows - : configVariables.map((configVariable) => ( - - - - - - ))} - -
KeyValue
- {configVariable.key}{" "} - {configVariable.secret && }
- - {configVariable.description} - -
- {configVariable.obscured - ? "•".repeat(configVariable.value.length) - : configVariable.value} - - - - showUpdateConfigVariableModal( - modals, - configVariable, - getConfigVariables - ) - } - > - - - -
+ + + + + + + + + + + {isLoading + ? skeletonRows + : configVariables.map((configVariable) => ( + + + + + + ))} + +
KeyValue
+ {configVariable.key}{" "} + {configVariable.secret && }
+ + {configVariable.description} + +
+ {configVariable.obscured + ? "•".repeat(configVariable.value.length) + : configVariable.value} + + + + showUpdateConfigVariableModal( + modals, + configVariable, + getConfigVariables + ) + } + > + + + +
+
); }; diff --git a/frontend/src/components/admin/ManageUserTable.tsx b/frontend/src/components/admin/ManageUserTable.tsx index 52e61cc..11fbbe4 100644 --- a/frontend/src/components/admin/ManageUserTable.tsx +++ b/frontend/src/components/admin/ManageUserTable.tsx @@ -18,8 +18,8 @@ const ManageUserTable = ({ const modals = useModals(); return ( - - + +
Username