Skip to content

Commit

Permalink
chore: sticky header on dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
RRanath committed Aug 28, 2024
1 parent 3e4d015 commit d9d0a40
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/components/AnalystDashboard/AllDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,16 @@ const AllDashboardTable: React.FC<Props> = ({ query }) => {
enableColumnResizing: true,
columnResizeMode: 'onChange',
state,
muiTableContainerProps: { sx: { padding: '8px' } },
muiTableContainerProps: {
sx: {
padding: '0 8px 8px 8px',
maxHeight: 'calc(100vh - 460px)',
},
},
layoutMode: isLargeUp ? 'grid' : 'semantic',
muiTableBodyCellProps,
muiTableHeadCellProps,
enableStickyHeader: true,
onSortingChange: handleOnSortChange,
onColumnFiltersChange: setColumnFilters,
autoResetAll: false,
Expand Down Expand Up @@ -626,7 +632,6 @@ const AllDashboardTable: React.FC<Props> = ({ query }) => {
<>
{renderRowCount()}
<MaterialReactTable table={table} />
{renderRowCount()}
</>
);
};
Expand Down

0 comments on commit d9d0a40

Please sign in to comment.