From f3030a29d31153a95c2214af04f7fb5918a832ff Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 18 Dec 2024 13:25:18 +0800 Subject: [PATCH] * typography: improve text wrap in paragraphs. --- lib/typography/src/style/article.css | 1 + lib/typography/src/style/blockquote.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/typography/src/style/article.css b/lib/typography/src/style/article.css index 3441db1d62..95f1774d3e 100644 --- a/lib/typography/src/style/article.css +++ b/lib/typography/src/style/article.css @@ -19,6 +19,7 @@ .article table, .article img { @apply -my-[--article-p-space]; + text-wrap: pretty; } .article p { diff --git a/lib/typography/src/style/blockquote.css b/lib/typography/src/style/blockquote.css index e39c40a483..32065b354d 100644 --- a/lib/typography/src/style/blockquote.css +++ b/lib/typography/src/style/blockquote.css @@ -1,6 +1,6 @@ blockquote, .blockquote { @apply -border-l-4 -pl-3 -text-md; - text-wrap: balance; + text-wrap: pretty; } blockquote figcaption , .blockquote figcaption { @apply -text-gray-500 -text-sm;