From 10066f56bd850e329b6054e01fa8bede5b294360 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Fri, 25 Feb 2022 06:01:21 +0000 Subject: [PATCH] Improve how overflow wrapping is handled --- src/furo/assets/styles/components/_footer.sass | 2 +- src/furo/assets/styles/components/_sidebar.sass | 2 +- src/furo/assets/styles/components/_table_of_contents.sass | 2 +- src/furo/assets/styles/content/_api.sass | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/furo/assets/styles/components/_footer.sass b/src/furo/assets/styles/components/_footer.sass index a391c0815..606913e2d 100644 --- a/src/furo/assets/styles/components/_footer.sass +++ b/src/furo/assets/styles/components/_footer.sass @@ -93,12 +93,12 @@ footer .page-info display: flex flex-direction: column + overflow-wrap: anywhere .next-page & align-items: flex-end .context - word-break: break-word display: flex align-items: center diff --git a/src/furo/assets/styles/components/_sidebar.sass b/src/furo/assets/styles/components/_sidebar.sass index a0de20a4c..05c557519 100644 --- a/src/furo/assets/styles/components/_sidebar.sass +++ b/src/furo/assets/styles/components/_sidebar.sass @@ -125,7 +125,7 @@ text-decoration: none // Don't allow long words to cause wrapping. - word-break: break-word + overflow-wrap: anywhere height: 100% width: 100% diff --git a/src/furo/assets/styles/components/_table_of_contents.sass b/src/furo/assets/styles/components/_table_of_contents.sass index 60132c3ea..d99362a46 100644 --- a/src/furo/assets/styles/components/_table_of_contents.sass +++ b/src/furo/assets/styles/components/_table_of_contents.sass @@ -47,7 +47,7 @@ .reference color: var(--color-toc-item-text) text-decoration: none - word-break: break-word + overflow-wrap: anywhere .toc-scroll max-height: 100vh diff --git a/src/furo/assets/styles/content/_api.sass b/src/furo/assets/styles/content/_api.sass index e6bd7ebd8..7b5e4a7b2 100644 --- a/src/furo/assets/styles/content/_api.sass +++ b/src/furo/assets/styles/content/_api.sass @@ -67,7 +67,7 @@ dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(. // Break words when they're too long span.pre - word-break: break-word + overflow-wrap: anywhere em.property font-style: normal