Skip to content

Commit 2fff343

Browse files
Fixing most requested display issue when only 2 items
1 parent 2b09d3c commit 2fff343

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

components/gc-most-requested/_base.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
}
2424
}
2525

26+
.gc-most-requested ul li:nth-child(2):last-child {
27+
break-after: column;
28+
break-inside: avoid-column;
29+
}
30+
2631
// Styles to slightly break the layout for bad implementation
2732
.container .gc-most-requested {
2833
background: transparent;

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
}
4141
}
4242

43+
.gc-most-requested ul li:nth-child(2):last-child {
44+
break-after: column;
45+
break-inside: avoid-column;
46+
display: block;
47+
}
48+
4349
// Styles to slightly break the layout for bad implementation
4450
.container .gc-most-requested {
4551
h2 {

0 commit comments

Comments
 (0)