Skip to content

Commit 1221ed4

Browse files
fix(layer-2): convert grid column styling to templateColumns prop
1 parent 72a710f commit 1221ed4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/pages/layer-2.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@ const StatDescription = (props: ChildOnlyType) => (
158158
)
159159

160160
const Layer2CardGrid = (props: ChildOnlyType) => (
161-
<SimpleGrid columns={4} gap={8} minChildWidth="280px" {...props} />
161+
<SimpleGrid
162+
templateColumns="repeat(4, minmax(min(100%, 280px), 1fr))"
163+
gap={8}
164+
{...props}
165+
/>
162166
)
163167

164168
interface L2DataResponseItem {

0 commit comments

Comments
 (0)