Skip to content

Commit 9eaba99

Browse files
authored
Word wrap fixed, but formating now inconsistent (#710)
1 parent 93ebf27 commit 9eaba99

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

react/src/pages/CustomPage/About/index.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,10 @@ interface TabPanelProps {
1313
}
1414

1515
const TabPanel = ({ children, value, index, ...other }: TabPanelProps) => (
16-
<div
17-
role="tabpanel"
18-
hidden={value !== index}
19-
style={{ overflowWrap: 'break-word' }}
20-
{...other}
21-
>
16+
<div role="tabpanel" hidden={value !== index} {...other}>
2217
{value === index && (
2318
<Box m="5%">
24-
<div style={{ whiteSpace: 'pre-wrap', overflowWrap: 'anywhere' }}>
25-
{children}
26-
</div>
19+
<div style={{ whiteSpace: 'pre-wrap' }}>{children}</div>
2720
</Box>
2821
)}
2922
</div>
@@ -44,7 +37,6 @@ const About = () => {
4437
value={value}
4538
onChange={(e, newValue) => setValue(newValue)}
4639
scrollButtons
47-
style={{ overflowWrap: 'anywhere' }}
4840
allowScrollButtonsMobile
4941
>
5042
<Tab wrapped label="Introduction" />

react/src/pages/CustomPage/Contribute/index.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,10 @@ interface TabPanelProps {
1212
}
1313

1414
const TabPanel = ({ children, value, index, ...other }: TabPanelProps) => (
15-
<div
16-
role="tabpanel"
17-
hidden={value !== index}
18-
style={{ overflowWrap: 'break-word' }}
19-
{...other}
20-
>
15+
<div role="tabpanel" hidden={value !== index} {...other}>
2116
{value === index && (
2217
<Box m="5%">
23-
<div style={{ whiteSpace: 'pre-wrap', overflowWrap: 'anywhere' }}>
24-
{children}
25-
</div>
18+
<div style={{ whiteSpace: 'pre-wrap' }}>{children}</div>
2619
</Box>
2720
)}
2821
</div>
@@ -43,7 +36,6 @@ const Contribute = () => {
4336
value={value}
4437
onChange={(e, newValue) => setValue(newValue)}
4538
scrollButtons
46-
style={{ overflowWrap: 'anywhere' }}
4739
allowScrollButtonsMobile
4840
>
4941
<Tab wrapped label="Donate" />

0 commit comments

Comments
 (0)