From cb9c5081d203c60517c9034c2b6ee66f377c963f Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 28 Aug 2024 22:12:32 +0800 Subject: [PATCH] fix(style): improve work break for a tags (#1363) --- .../theme-default/src/components/Overview/index.module.scss | 2 +- .../src/layout/DocLayout/docComponents/index.module.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/theme-default/src/components/Overview/index.module.scss b/packages/theme-default/src/components/Overview/index.module.scss index 634ff5be7..e6058e902 100644 --- a/packages/theme-default/src/components/Overview/index.module.scss +++ b/packages/theme-default/src/components/Overview/index.module.scss @@ -84,7 +84,7 @@ margin-top: 8px; color: var(--rp-c-text-code); transition: color 0.5s; - word-break: break-all; + overflow-wrap: break-word; } .overview-group-li { diff --git a/packages/theme-default/src/layout/DocLayout/docComponents/index.module.scss b/packages/theme-default/src/layout/DocLayout/docComponents/index.module.scss index 6fff6ed7d..e93b90211 100644 --- a/packages/theme-default/src/layout/DocLayout/docComponents/index.module.scss +++ b/packages/theme-default/src/layout/DocLayout/docComponents/index.module.scss @@ -66,7 +66,7 @@ .inline-link { display: inline; - word-break: break-all; + overflow-wrap: break-word; } // For the className injected by shiki rehype plugin