Skip to content

Commit cd47310

Browse files
committed
fix: missing responsiveness
1 parent ee279db commit cd47310

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

src/pages/my-quizzes/details/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ export const MyQuizDetailsPage = () => {
2121
});
2222

2323
return (
24-
<Box width={1} height={1} p={3}>
24+
<Box width={1} height={1} p={3} maxHeight={1}>
2525
{match($quizDetails)
2626
.with({ isLoading: true }, () => <QuizDetailsSkeleton />)
2727
.with({ isError: true, error: P.select() }, (error) => (
2828
<Typography>{error.message}</Typography>
2929
))
3030
.with({ isSuccess: true, data: P.select() }, (quiz) => {
3131
return (
32-
<Box>
32+
<Box sx={{ flex: 1, maxHeight: 1, overflow: "auto" }}>
3333
<Box
3434
sx={{
3535
display: "flex",

src/pages/profile/components/profile-tabs/profile-tabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const tabs: Array<Tab<TabTypes>> = [
2020

2121
export const ProfileTabs = () => {
2222
return (
23-
<Box sx={{ width: 1, maxWidth: { xs: 420, sm: 680 } }}>
23+
<Box sx={{ width: 1, maxWidth: { xs: 420, sm: 680 }, p: 3 }}>
2424
<Tabs<TabTypes> defaultTab="info" tabs={tabs} />
2525
</Box>
2626
);

src/pages/profile/page.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ export const Profile = () => {
1313

1414
return (
1515
<Box
16-
height={1}
17-
width={1}
18-
display="flex"
19-
flexDirection="column"
20-
alignItems="center"
21-
gap={3}
16+
sx={{
17+
width: 1,
18+
height: 1,
19+
display: "flex",
20+
flexDirection: "column",
21+
alignItems: "center",
22+
gap: 3,
23+
}}
2224
>
2325
<Box
2426
width={1}

0 commit comments

Comments
 (0)