Skip to content

Commit 5144893

Browse files
committed
Fixed word font size
1 parent 8232d8a commit 5144893

File tree

1 file changed

+13
-14
lines changed
  • src/pages/WordToTranslation/Quiz/Question

1 file changed

+13
-14
lines changed

src/pages/WordToTranslation/Quiz/Question/index.tsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,25 @@ export const Question = ({ data, autoSpeak }: Props) => {
1515
return (
1616
<Card sx={{ display: 'flex', flexDirection: 'column', flex: 1 }}>
1717
<CardContent sx={{ display: 'flex', flexDirection: 'column', flex: 1, gap: 2, justifyContent: 'space-between' }}>
18-
<Stack direction="row" spacing={1} alignItems="center">
19-
<SimpleSpeakButton text={data.word} autoSpeak={autoSpeak} />
20-
21-
<Stack>
22-
<Stack direction="row" spacing={1} alignItems="center">
23-
<Typography variant="h5">{data.word}</Typography>
24-
{data.transcription && (
25-
<Typography variant="body1" color="textSecondary">
26-
[{data.transcription}]
27-
</Typography>
28-
)}
29-
</Stack>
18+
<Box>
19+
<Stack direction="row" spacing={1} alignItems="center">
20+
<SimpleSpeakButton text={data.word} autoSpeak={autoSpeak} />
21+
<Typography variant="h4">{data.word}</Typography>
22+
{data.transcription && (
23+
<Typography variant="body1" color="textSecondary">
24+
[{data.transcription}]
25+
</Typography>
26+
)}
27+
</Stack>
3028

29+
<Box paddingLeft={6}>
3130
{wordTypesAsStr && (
3231
<Typography variant="caption" color="success">
3332
({wordTypesAsStr})
3433
</Typography>
3534
)}
36-
</Stack>
37-
</Stack>
35+
</Box>
36+
</Box>
3837

3938
{data.example && (
4039
<>

0 commit comments

Comments
 (0)