Skip to content

Commit d36ff20

Browse files
committed
fix: in react ui, render M layout 4-column
Signed-off-by: Nick Mitchell <[email protected]>
1 parent 5a6c6a8 commit d36ff20

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pdl-live-react/src/view/masonry/Masonry.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@
7878
}
7979
}
8080
&[data-padding="m"] {
81-
div {
82-
font-size: 0.875rem !important;
83-
}
81+
max-height: 30em;
82+
font-size: 0.875rem !important;
8483
}
8584
}

pdl-live-react/src/view/masonry/Masonry.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ type Props = import("react").PropsWithChildren<{
1212

1313
const col1 = { 10000: 1 }
1414
const col3 = { 500: 1, 950: 2, 1400: 3 }
15+
const col4 = { 500: 2, 950: 3, 1400: 4 }
1516
const col6 = { 500: 4, 950: 5, 1400: 6 }
1617

1718
export default function Masonry({ as, sml, model, children }: Props) {
18-
const breakpoints = as === "grid" ? (sml === "s" ? col6 : col3) : col1
19+
const breakpoints =
20+
as === "grid" ? (sml === "s" ? col6 : sml === "m" ? col4 : col3) : col1
1921

2022
// gutterBreakpoints={{350: "12px", 750: "16px", 900: "24px"}}
2123
return (

0 commit comments

Comments
 (0)