From 645fae43114b17aef8697dfb4f170998103b870f Mon Sep 17 00:00:00 2001 From: Rebill Date: Thu, 29 Jan 2026 17:23:19 +0800 Subject: [PATCH] Fix word breaking issues in cover and styles --- assets/cover.html | 3 ++- assets/styles.css | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/cover.html b/assets/cover.html index 96735ce..c1ceb10 100644 --- a/assets/cover.html +++ b/assets/cover.html @@ -58,7 +58,8 @@ flex: 1; display: flex; align-items: flex-start; - word-break: break-all; + word-break: normal; + overflow-wrap: break-word; } .cover-subtitle { diff --git a/assets/styles.css b/assets/styles.css index 7134fee..1f2fb12 100644 --- a/assets/styles.css +++ b/assets/styles.css @@ -70,7 +70,8 @@ body { -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: auto; - word-break: break-all; + word-break: normal; + overflow-wrap: break-word; } .cover-subtitle { @@ -199,7 +200,9 @@ body { overflow-x: visible; overflow-wrap: break-word; word-wrap: break-word; - word-break: break-all; + overflow-wrap: break-word; + word-wrap: break-word; + word-break: normal; white-space: pre-wrap; font-size: 36px; line-height: 1.5; @@ -315,4 +318,4 @@ body { .bg-gradient-8 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); -} +} \ No newline at end of file