Skip to content

Commit

Permalink
added scrolling inside table
Browse files Browse the repository at this point in the history
  • Loading branch information
subru-37 committed Oct 8, 2024
1 parent 0ca888e commit d391f08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web-admin/src/components/DataDisplay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function DataDisplay({ loading, rows, columns, onRowClick }) {
<Spinner size="xl" color="primary.500" />
) : (
<TableContainer>
<Table variant="simple">
<Table variant="simple" overflowY={'auto'}>
<Thead>
<Tr>
<Th>
Expand Down
2 changes: 1 addition & 1 deletion apps/web-admin/src/layouts/DashboardLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function DashboardLayout({ headerButton, children }) {
<Button onClick={onOpen}>Organization Settings</Button> {/* Button to open modal */}
</Flex>
</Flex>
<Box height="100%" overflowY="hidden" p={4}>
<Box height="100%" overflowY="auto" overflowX={'auto'} p={4}>
{children}
</Box>
</Flex>
Expand Down

0 comments on commit d391f08

Please sign in to comment.