From bfb45045f667f98eea6e36136d194c33afdb5898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 13 Apr 2023 16:37:07 -0400 Subject: [PATCH] fix bottom margin of p tags in line-clamp base on line-height --- public/scss/mixins.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/scss/mixins.scss b/public/scss/mixins.scss index 673b8081fa..c38a4d13b3 100644 --- a/public/scss/mixins.scss +++ b/public/scss/mixins.scss @@ -96,6 +96,9 @@ -webkit-line-clamp: $lines; white-space: initial; max-height: calc($line-height * $lines); + > p { + margin-bottom: $line-height; + } } @for $i from 1 through 6 {