diff --git a/src/components/DataTable/DataTable.tsx b/src/components/DataTable/DataTable.tsx index afe33b7..9743bc3 100644 --- a/src/components/DataTable/DataTable.tsx +++ b/src/components/DataTable/DataTable.tsx @@ -66,28 +66,58 @@ export function DataTableComponent({ editDisplayMode: 'row', enableBottomToolbar: false, enableToolbarInternalActions: false, + positionGlobalFilter: 'right', onCreatingRowSave: handleCreateRow, onEditingRowSave: handleEditRow, getRowId: (row: any) => row.id, initialState: { - showProgressBars: isFetching, showLoadingOverlay: isLoading, isLoading: isLoading, }, state: { - showProgressBars: isFetching, - showLoadingOverlay: isLoading, + showLoadingOverlay: isFetching, isLoading: isLoading, + columnVisibility: { id: false, categoryIndex: false }, + showGlobalFilter: tableName !== 'Personalization', }, + mantineSearchTextInputProps: {}, mantinePaperProps: { className: 'root', style: { - height: '75vh', - overflow: 'scroll', + border: 'none', + boxShadow: 'none', + }, + }, + mantineTableContainerProps: { + style: { + maxHeight: '700px', + borderRadius: '20px', + backgroundColor: theme.searchColor, + backdropFilter: theme.backgroundImage === 'none' ? undefined : 'blur(20px)', + fontSize: '18px', + }, + }, + mantineTableHeadProps: { + style: { + fontSize: '18px', + backgroundColor: theme.primaryColor, + color: theme.accentColor, + opacity: 1, + }, + }, + mantineTableBodyRowProps: { + style: { + borderBottom: 'none', + }, + }, + displayColumnDefOptions: { + 'mrt-row-actions': { + header: '', + minSize: 40, }, }, renderRowActions: ({ row, table }) => ( - + { if (messages) { setDisplayedGreeting(() => { - if (Math.floor(Math.random() * 100) < 10 || messages.length === 0) { + if (Math.floor(Math.random() * 100) > 10 || messages.length === 0) { switch (Math.floor(new Date().getHours() / 6)) { case 0: return `Good night, ${personal[0].firstName}!`; diff --git a/src/pages/settings/components/Themes.tsx b/src/pages/settings/components/Themes.tsx index d5c3988..82419fa 100644 --- a/src/pages/settings/components/Themes.tsx +++ b/src/pages/settings/components/Themes.tsx @@ -93,6 +93,7 @@ function ThemesSettings() { Themes