Skip to content

Commit cb4df87

Browse files
authored
Add wrap so when user shrink the screen, all info and chip buttons are not out of card scope (#7278)
https://torchci-git-fixcss-fbopensource.vercel.app/benchmark/benchmark_list
1 parent 0ffb888 commit cb4df87

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

torchci/components/benchmark/v3/components/benchmarkList/BenchmarkCategoryCard.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ function BenchmarkCardItem({
126126
sx={{ px: 2, pb: 1, pt: 0.5 }}
127127
direction="row"
128128
alignItems="center"
129+
flexWrap="wrap"
129130
>
130131
<Typography variant="subtitle1">Details:</Typography>
131132
<Typography
@@ -144,7 +145,12 @@ function BenchmarkCardItem({
144145

145146
{it.actions && (
146147
<Box sx={{ px: 2, pb: 1, pt: 0.5 }}>
147-
<Stack direction="row" spacing={1} alignItems="center">
148+
<Stack
149+
direction="row"
150+
spacing={1}
151+
alignItems="center"
152+
flexWrap="wrap"
153+
>
148154
<Typography variant="subtitle1">Pages:</Typography>
149155
{it.actions.map((a, idx) => {
150156
if (!a.href) {

0 commit comments

Comments
 (0)