Fix safari specific issue with line clamp on description #4348

This commit is contained in:
advplyr 2025-05-30 17:33:15 -05:00
parent f44c2d9e11
commit 4968864498

View File

@ -819,6 +819,17 @@ export default {
-webkit-line-clamp: 4; -webkit-line-clamp: 4;
max-height: calc(6 * 1lh); max-height: calc(6 * 1lh);
} }
/* Safari-specific fix for the description clamping */
@supports (-webkit-touch-callout: none) {
#item-description {
position: relative;
display: block;
overflow: hidden;
max-height: calc(6 * 1lh);
}
}
#item-description.show-full { #item-description.show-full {
-webkit-line-clamp: unset; -webkit-line-clamp: unset;
max-height: 999rem; max-height: 999rem;