From b579950ae550df8551bf087e8f017a41b36a726e Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 13 Mar 2025 21:05:26 +0000
Subject: [PATCH] fix(og): adjust line clamp
---
quartz/util/og.tsx | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/quartz/util/og.tsx b/quartz/util/og.tsx
index f912b8a..4901a53 100644
--- a/quartz/util/og.tsx
+++ b/quartz/util/og.tsx
@@ -266,6 +266,7 @@
WebkitBoxOrient: "vertical",
WebkitLineClamp: 2,
overflow: "hidden",
+ textOverflow: "ellipsis",
}}
>
{title}
@@ -287,8 +288,9 @@
margin: 0,
display: "-webkit-box",
WebkitBoxOrient: "vertical",
- WebkitLineClamp: 4,
+ WebkitLineClamp: 5,
overflow: "hidden",
+ textOverflow: "ellipsis",
}}
>
{description}
--
Gitblit v1.10.0