Skip to content

Commit 9c782a4

Browse files
fix: enforce responsive web design via CSS word-break and flex-wrap properties (npm#1544)
npm#1367 Co-authored-by: Sarkis Kovlekjian <[email protected]>
1 parent c89a3ee commit 9c782a4

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
@@ -32,7 +32,7 @@ const Contributors = ({contributors = [], latestCommit}) => {
3232

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

src/mdx/components.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export const UnorderedList = styled.ul`
180180
}
181181
182182
li {
183-
word-break: break-all;
183+
word-break: break-word;
184184
}
185185
186186
li > p {
@@ -196,6 +196,7 @@ export const OrderedList = UnorderedList.withComponent('ol')
196196

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

201202
export const Table = styled.table`

0 commit comments

Comments
 (0)