diff --git a/www/src/components/Table/HiddenFields.tsx b/www/src/components/Table/HiddenFields.tsx index 01b144e7..59e6255d 100644 --- a/www/src/components/Table/HiddenFields.tsx +++ b/www/src/components/Table/HiddenFields.tsx @@ -121,7 +121,14 @@ export default function HiddenFields() { createStyles({ - tabPanel: { padding: theme.spacing(4) }, + tabPanel: { + padding: theme.spacing(3), + width: 400, + height: 200, + }, continueButton: { - margin: theme.spacing(-2, 2.5, 4), + margin: theme.spacing(-2, "auto", 3), display: "flex", - marginLeft: "auto", }, dropzone: { @@ -250,7 +252,8 @@ export default function ImportCsv({ render, PopoverProps }: IImportCsvProps) { inputProps={{ minRows: 5 }} autoFocus fullWidth - label="Paste your CSV here" + label="Paste CSV Text" + placeholder="column, column, …" onChange={(e) => { if (csvData !== null) setCsvData(null); handlePaste(e.target.value); @@ -271,7 +274,8 @@ export default function ImportCsv({ render, PopoverProps }: IImportCsvProps) { variant="filled" autoFocus fullWidth - label="Paste the link to the CSV file here" + label="Paste URL to CSV File" + placeholder="https://" onChange={(e) => { if (csvData !== null) setCsvData(null); handleUrl(e.target.value); @@ -283,7 +287,7 @@ export default function ImportCsv({ render, PopoverProps }: IImportCsvProps) { ); -} +}); + +export default TableHeaderButton; diff --git a/www/src/components/Table/TableHeader/index.tsx b/www/src/components/Table/TableHeader/index.tsx index 8adb5425..1595a3c0 100644 --- a/www/src/components/Table/TableHeader/index.tsx +++ b/www/src/components/Table/TableHeader/index.tsx @@ -42,13 +42,8 @@ const useStyles = makeStyles((theme) => "& > *": { paddingTop: "0 !important" }, }, - // addRowIcon: { - // fontSize: "26px !important", - // marginTop: -1, - // marginBottom: -1, - // }, - - spacer: { minWidth: theme.spacing(8) }, + spacer: { width: theme.spacing(2) }, + midSpacer: { minWidth: theme.spacing(8) }, }) ); @@ -82,53 +77,50 @@ export default function TableHeader() { > {!isCollectionGroup() && ( - */} + - - + */} )} {/* Spacer */} - + @@ -151,14 +143,14 @@ export default function TableHeader() { - + {/* Spacer */} - + {!isCollectionGroup() && ( @@ -170,6 +162,9 @@ export default function TableHeader() { + {/* Spacer */} + + {userClaims?.roles?.includes("ADMIN") && ( @@ -189,6 +184,9 @@ export default function TableHeader() { )} + {/* Spacer */} + +