Skip to content

Commit

Permalink
Fix header not centering and add text to switches.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramirisu committed Jan 27, 2024
1 parent 0eebc42 commit 702c91e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/pages/quiz/Result.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,20 @@ const Result = () => {
headStyle={{
fontSize: 'x-large',
textAlign: 'center',
paddingLeft: '60px',
}}
style={{
width: '100%',
fontSize: 'large',
margin: '5px 10px 5px 10px',
}}
extra={<Switch onChange={(checked) => { setExpandIdeology(checked) }} />}
extra={<Switch
unCheckedChildren='3'
checkedChildren='∞'
size='small'
onChange={(checked) => { setExpandIdeology(checked) }}
style={{ backgroundColor: expandIdeology ? 'crimson' : 'gray' }}
/>}
>
<Row>
{getTopScores(getIdeologyMatchScores(weights), expandIdeology, 3).map((value, index) => {
Expand Down Expand Up @@ -196,13 +203,20 @@ const Result = () => {
headStyle={{
fontSize: 'x-large',
textAlign: 'center',
paddingLeft: '60px',
}}
style={{
width: '100%',
fontSize: 'large',
margin: '5px 10px 5px 10px',
}}
extra={<Switch onChange={(checked) => { setExpandParty(checked) }} />}
extra={<Switch
unCheckedChildren='3'
checkedChildren='∞'
size='small'
onChange={(checked) => { setExpandParty(checked) }}
style={{ backgroundColor: expandParty ? 'crimson' : 'gray' }}
/>}
>
<Row>
{getTopScores(getPoliticalPartyMatchScores(weights), expandParty, 3).map((value, index) => (
Expand Down

0 comments on commit 702c91e

Please sign in to comment.