Skip to content

Commit 0d4b3ee

Browse files
committed
Fix SplitLayout responsive layout overflow (767px-1450px)
Flex items were overflowing due to content min-width constraints in mid-range breakpoints - Add minW={0} to VStack in SplitLayout for proper flex shrinking - Add overflowX="auto" to DataTable as fallback for extreme cases fix #162
1 parent 5792825 commit 0d4b3ee

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

โ€Žsrc/frontend/src/core/layout/split-layout.tsxโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ type SplitLayoutProps = {
1111
export const SplitLayout = ({ firstGroup, secondGroup }: SplitLayoutProps) => {
1212
return (
1313
<Flex direction={{ base: "column", md: "row" }} gap={4}>
14-
<VStack flex="1" gap={4}>
14+
<VStack flex="1" gap={4} minW={0}>
1515
<ErrorBoundary>{firstGroup}</ErrorBoundary>
1616
</VStack>
17-
<VStack flex="1" gap={4}>
17+
<VStack flex="1" gap={4} minW={0}>
1818
<ErrorBoundary>{secondGroup}</ErrorBoundary>
1919
</VStack>
2020
</Flex>

โ€Žsrc/frontend/src/core/table/data-table.tsxโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ export const DataTable = <T,>({
195195
borderRadius="xl"
196196
boxShadow="lg"
197197
overflow="hidden"
198+
overflowX="auto"
198199
width="100%"
199200
>
200201
<Table.ScrollArea maxHeight="4xl">

0 commit comments

Comments
ย (0)