Skip to content

Commit

Permalink
Add min height to the table
Browse files Browse the repository at this point in the history
So it doesn't collapse to infinite pages
  • Loading branch information
MytsV committed Sep 3, 2024
1 parent dd96cb0 commit 56e3963
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/component-library/Table/RegularTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,14 @@ export const RegularTable = (props: RegularTableProps) => {
whereas noRowsOverlayComponent is shown when the loading has started without data transactions */
return (
<>
<div className={twMerge(isDarkMode ? 'ag-grid-theme-rucio-dark' : 'ag-grid-theme-rucio-light', 'grid grow w-full', 'relative')}>
<div
className={twMerge(
isDarkMode ? 'ag-grid-theme-rucio-dark' : 'ag-grid-theme-rucio-light',
'grid grow w-full',
'relative',
'min-h-[300px]',
)}
>
{!isTableLoaded && <Skeleton className="absolute flex items-center justify-center w-full h-full rounded-b-none" />}
<AgGridReact
pagination={true}
Expand Down
4 changes: 4 additions & 0 deletions src/component-library/outputtailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,10 @@ html {
min-height: 0px;
}

.min-h-\[300px\] {
min-height: 300px;
}

.min-h-screen {
min-height: 100vh;
}
Expand Down

0 comments on commit 56e3963

Please sign in to comment.