Skip to content

Commit c8b51d0

Browse files
committed
Fix how content overflow is handled
Instead of overriding it on every element on its own, set up text overflow on the article itself.
1 parent 80afa27 commit c8b51d0

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

docs/kitchen-sink/really-long.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ Lorem ipsum dolor sit amet consectetur adipisicing elit. Itaque sit temporibus c
100100

101101
Lorem ipsum dolor sit amet consectetur adipisicing elit. Itaque sit temporibus cupiditate in ducimus illum assumenda dolor, dignissimos laboriosam voluptate dolorem dolore eum repellendus minima, nisi sequi? Eveniet, dignissimos asperiores!
102102

103-
## Heading 17
103+
## Heading_17_is_a_really_long_heading_that_is_not_code_and_should_wrap_when_it_reaches_the_sidebar
104104

105-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Itaque sit temporibus cupiditate in ducimus illum assumenda dolor, dignissimos laboriosam voluptate dolorem dolore eum repellendus minima, nisi sequi? Eveniet, dignissimos asperiores!
105+
This_is_a_really_long_sentence_that_is_not_code_and_needs_more_words_and_should_wrap_when_it_reaches_the_sidebar
106106

107107
## Heading 18
108108

src/furo/assets/styles/_scaffold.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ body
4747
article
4848
color: var(--color-content-foreground)
4949
background: var(--color-content-background)
50+
overflow-wrap: break-word
5051

5152
.page
5253
display: flex

src/furo/assets/styles/content/_api.sass

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.
6868
font-weight: normal
6969
width: 3.5rem
7070

71-
// Break words when they're too long
72-
span.pre
73-
overflow-wrap: anywhere
74-
7571
em.property
7672
font-style: normal
7773
&:first-child

src/furo/assets/styles/content/_code.sass

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ code.literal, .sig-inline
66
font-size: var(--font-size--small--2)
77
padding: 0.1em 0.2em
88

9-
overflow-wrap: break-word
10-
119
p &
1210
border: 1px solid var(--color-background-border)
1311

0 commit comments

Comments
 (0)