Skip to content

Commit c7dbab7

Browse files
committed
Fix scroll on mobile for list views
1 parent 451a626 commit c7dbab7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

frontend/src/components/common/ListView.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ const ListView = ({ columns, rowOptions, data, loading, requestType, currentPage
4444
margin: 0 !important;
4545
width: 100%;
4646
--data-table-library_grid-template-columns: repeat(${columns.length - 1}, minmax(0, 1fr)) 88px;
47+
48+
overflow: auto;
49+
min-width: 500px;
4750
4851
.animate {
4952
grid-column: 1 / -1;
@@ -95,6 +98,8 @@ const ListView = ({ columns, rowOptions, data, loading, requestType, currentPage
9598
bgColor="gray.50"
9699
borderLeft="2px solid"
97100
borderColor="gray.gray83"
101+
minWidth="500px"
102+
overflow="auto"
98103
>
99104
<Text variant="desktop-body-bold">{requestType}</Text>
100105
</Box>
@@ -122,6 +127,8 @@ const ListView = ({ columns, rowOptions, data, loading, requestType, currentPage
122127
gap="16px"
123128
color="#4A5568"
124129
justifyContent="right"
130+
minWidth="500px"
131+
overflow="scroll"
125132
>
126133
<Text fontSize="14px">Page: {currentPage}</Text>
127134
{currentPage === 1 ? (

frontend/src/pages/ASPDashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const Dashboard = (): React.ReactElement => {
4040
<Text variant="desktop-caption" mb="20px">
4141
Use this page to see your upcoming food deliveries
4242
</Text>
43-
<Tabs defaultIndex={0} w="100%">
43+
<Tabs defaultIndex={0} w="100%" minWidth="400px" overflow="scroll">
4444
<Flex flexDir="row" justifyContent="space-between">
4545
<TabList>
4646
<Tab gap="8px">

0 commit comments

Comments
 (0)