Skip to content

Commit 09e8e9d

Browse files
Fix most requested list item alignment for the two item layout
1 parent 10e2076 commit 09e8e9d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

components/gc-most-requested/_screen-md-min.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@
3636
display: block;
3737
width: 335px;
3838
}
39+
}
3940

40-
&:nth-child(2):last-child {
41-
break-after: column;
42-
break-inside: avoid-column;
43-
display: block;
41+
// If there are only two items in the list, display them side by side, horizontally aligned
42+
&:has(>li:nth-child(2):last-child) {
43+
display: flex;
44+
45+
> li {
46+
width: 50%;
4447
}
4548
}
4649
}

0 commit comments

Comments
 (0)