Skip to content

Commit dc61a04

Browse files
committed
In Featured Item, change to height-based clamp, to fix styling issue in Safari
1 parent 012e15c commit dc61a04

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/sections/collection/featured-items/custom-featured-item-card/CustomFeaturedItemCard.module.scss

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
}
3535

3636
.content {
37-
display: -webkit-box;
38-
-webkit-line-clamp: 8;
39-
line-clamp: 8;
40-
-webkit-box-orient: vertical;
4137
width: 100%;
4238
overflow: hidden;
4339
pointer-events: none;
@@ -46,9 +42,15 @@
4642
pointer-events: none;
4743
}
4844

45+
min-height: 0;
46+
min-width: 0;
47+
48+
/* Height-based clamp */
49+
line-height: 1.25rem;
50+
max-height: calc(1.25rem * 8);
51+
4952
&.with_image {
50-
-webkit-line-clamp: 4;
51-
line-clamp: 4;
53+
max-height: calc(1.25rem * 4);
5254
}
5355

5456
h1 {

0 commit comments

Comments
 (0)