Skip to content

Commit c5bf3d4

Browse files
authoredNov 11, 2024
Merge pull request #1 from kenshanta/responsive-doc-view
word-break for `li` and `p` elements
2 parents 0a15a7e + 7332706 commit c5bf3d4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎src/components/page-footer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const Contributors = ({contributors = [], latestCommit}) => {
3131

3232
return (
3333
<>
34-
<Box sx={{display: 'flex', alignItems: 'center'}}>
34+
<Box sx={{display: 'flex', alignItems: 'center', flexWrap: 'wrap'}}>
3535
<Text sx={{mr: 2}}>
3636
{contributors.length} {pluralize('contributor', contributors.length)}
3737
</Text>

‎src/mdx/components.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export const UnorderedList = styled.ul`
179179
}
180180
181181
li {
182-
word-break: break-all;
182+
word-break: break-word;
183183
}
184184
185185
li > p {
@@ -195,6 +195,7 @@ export const OrderedList = UnorderedList.withComponent('ol')
195195

196196
export const Paragraph = styled.p`
197197
margin: 0 0 ${themeGet('space.3')};
198+
word-break: break-word;
198199
`
199200

200201
export const Table = styled.table`

0 commit comments

Comments
 (0)
Please sign in to comment.