From b579950ae550df8551bf087e8f017a41b36a726e Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Thu, 13 Mar 2025 14:05:26 -0700 Subject: [PATCH] fix(og): adjust line clamp --- quartz/util/og.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quartz/util/og.tsx b/quartz/util/og.tsx index f912b8afb..4901a53ed 100644 --- a/quartz/util/og.tsx +++ b/quartz/util/og.tsx @@ -266,6 +266,7 @@ export const defaultImage: SocialImageOptions["imageStructure"] = ( WebkitBoxOrient: "vertical", WebkitLineClamp: 2, overflow: "hidden", + textOverflow: "ellipsis", }} > {title} @@ -287,8 +288,9 @@ export const defaultImage: SocialImageOptions["imageStructure"] = ( margin: 0, display: "-webkit-box", WebkitBoxOrient: "vertical", - WebkitLineClamp: 4, + WebkitLineClamp: 5, overflow: "hidden", + textOverflow: "ellipsis", }} > {description}