Skip to content

Commit ce50f92

Browse files
authored
Merge pull request #949 from layer5io/fix-academy
fix: challange page overflow
2 parents 5dd49f5 + 8516a4b commit ce50f92

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/custom/ChapterCard/style.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ALABASTER_WHITE, MIDNIGHT_BLACK } from '../../theme';
55
export const ChapterCardWrapper = styled('div')(({ theme }) => ({
66
transition: '0.8s cubic-bezier(0.2, 0.8, 0.2, 1)',
77
padding: '1rem 1.25rem',
8-
width: '64rem',
8+
width: '100%',
99
backgroundColor: theme.palette.mode === 'light' ? ALABASTER_WHITE : MIDNIGHT_BLACK,
1010
display: 'flex',
1111
border: `1px solid ${
@@ -45,15 +45,9 @@ export const ChapterDescription = styled('div')({
4545
},
4646
'@media screen and (max-width: 650px)': {
4747
p: {
48-
whiteSpace: 'nowrap',
48+
whiteSpace: 'normal',
4949
overflow: 'hidden',
50-
textOverflow: 'ellipsis',
51-
width: '75vw'
52-
}
53-
},
54-
'@media screen and (max-width: 650px) and (min-width: 300px)': {
55-
p: {
56-
width: '68vw'
50+
textOverflow: 'ellipsis'
5751
}
5852
}
5953
});

0 commit comments

Comments
 (0)