Skip to content

Commit

Permalink
Revert fix introduced in #10685
Browse files Browse the repository at this point in the history
It breaks wit Safari on Iphone
  • Loading branch information
rioug committed Jul 22, 2024
1 parent 0c43dd4 commit 7f9bbd2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/webpacker/css/darkswarm/_shop-product-rows.scss
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
}

.product-description {
white-space: normal;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 0.75rem;
Expand All @@ -156,7 +156,9 @@
-webkit-box-orient: vertical;
overflow: hidden;
// line-clamp is not supported in Safari
line-height: 1.75rem;
// Trick to get overflow: hidden to work in old Safari
line-height: 1rem;
height: 1.75rem;

> div {
margin-bottom: 1.5rem; // Equivalent to p (trix doesn't use p as separator by default, so emulate div as p to be backward compatible)
Expand Down

0 comments on commit 7f9bbd2

Please sign in to comment.