diff --git a/frontend/src/component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx b/frontend/src/component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx index 5a9315faf5..fa88bb217c 100644 --- a/frontend/src/component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx +++ b/frontend/src/component/admin/apiToken/ApiTokenTable/ApiTokenTable.tsx @@ -80,25 +80,29 @@ export const ApiTokenTable = () => { - - - - - {rows.map(row => { - prepareRow(row); - return ( - - {row.cells.map(cell => ( - - {cell.render('Cell')} - - ))} - - ); - })} - -
-
+ + + + + + {rows.map(row => { + prepareRow(row); + return ( + + {row.cells.map(cell => ( + + {cell.render('Cell')} + + ))} + + ); + })} + +
+
+
{ const useHiddenColumns = (): string[] => { const { uiConfig } = useUiConfig(); - const isSmallScreen = useMediaQuery(theme.breakpoints.down('sm')); const isMediumScreen = useMediaQuery(theme.breakpoints.down('md')); return useMemo(() => { @@ -141,12 +144,8 @@ const useHiddenColumns = (): string[] => { hidden.push('createdAt'); } - if (isSmallScreen) { - hidden.push('username'); - } - return hidden; - }, [uiConfig, isSmallScreen, isMediumScreen]); + }, [uiConfig, isMediumScreen]); }; const COLUMNS = [ @@ -161,7 +160,6 @@ const COLUMNS = [ Header: 'Username', accessor: 'username', Cell: HighlightCell, - width: '60%', }, { Header: 'Type',