fix sub-table container height

This commit is contained in:
Sidney Alcantara
2022-06-21 17:49:27 +10:00
parent 52d03a1f27
commit f4d70b77b1
2 changed files with 5 additions and 1 deletions

View File

@@ -216,7 +216,7 @@ export default function Table({
return (
<Suspense fallback={<Loading message="Loading fields" />}>
{/* <Hotkeys selectedCell={selectedCell} /> */}
<TableContainer rowHeight={rowHeight}>
<TableContainer rowHeight={rowHeight} className="table-container">
<DndProvider backend={HTML5Backend}>
{showLeftScrollDivider && <div className="left-scroll-divider" />}

View File

@@ -23,6 +23,7 @@ import {
} from "@src/atoms/tableScope";
import { ROUTES } from "@src/constants/routes";
import { APP_BAR_HEIGHT } from "@src/layouts/Navigation";
import { TABLE_TOOLBAR_HEIGHT } from "@src/components/TableToolbar";
/**
* Wraps `TablePage` with the data for a top-level table.
@@ -98,6 +99,9 @@ export default function ProvidedSubTablePage() {
},
"& .dialog-close": { m: (APP_BAR_HEIGHT - 40) / 2 / 8, ml: -1 },
},
"& .table-container": {
height: `calc(100vh - ${APP_BAR_HEIGHT}px - ${TABLE_TOOLBAR_HEIGHT}px - 16px)`,
},
}}
ScrollableDialogContentProps={{
disableTopDivider: true,