Skip to content

Commit d02b0cf

Browse files
committed
fix height in user dashboard
1 parent 3359337 commit d02b0cf

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

app/[locale]/dashboard/page.tsx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import Link from 'next/link';
44
import { Icon, Text } from 'opub-ui';
55

6-
import { useDashboardStore } from '@/config/store';
76
import BreadCrumbs from '@/components/BreadCrumbs';
87
import { Icons } from '@/components/icons';
98
import { Loading } from '@/components/loading';
9+
import { useDashboardStore } from '@/config/store';
1010

1111
const UserDashboard = () => {
1212
const { userDetails, allEntityDetails } = useDashboardStore();
@@ -23,7 +23,6 @@ const UserDashboard = () => {
2323
},
2424
];
2525

26-
2726
return (
2827
<>
2928
<BreadCrumbs
@@ -39,21 +38,23 @@ const UserDashboard = () => {
3938
{!userDetails?.me ? (
4039
<Loading />
4140
) : (
42-
<div className="container mb-40 ">
41+
<div className="flex-1 container mb-40 ">
4342
<div className=" flex flex-col gap-6 py-10">
4443
<Text variant="headingXl"> User Dashboard</Text>
4544
</div>
46-
<div className="flex flex-wrap items-center gap-6 md:flex-nowrap lg:flex-nowrap">
47-
{list.map((item, index) => (
48-
<Link
49-
key={index}
50-
href={item.path}
51-
className=" flex max-h-56 min-h-56 w-full flex-col items-center justify-center gap-3 rounded-4 bg-greyExtralight p-4 "
52-
>
53-
<Icon source={item.icon} size={60} color="highlight" />
54-
<Text variant="headingLg">{item.label}</Text>
55-
</Link>
56-
))}
45+
<div className="flex-1 ">
46+
<div className="flex flex-wrap items-center gap-6 md:flex-nowrap lg:flex-nowrap">
47+
{list.map((item, index) => (
48+
<Link
49+
key={index}
50+
href={item.path}
51+
className=" flex max-h-56 min-h-56 w-full flex-col items-center justify-center gap-3 rounded-4 bg-greyExtralight p-4 "
52+
>
53+
<Icon source={item.icon} size={60} color="highlight" />
54+
<Text variant="headingLg">{item.label}</Text>
55+
</Link>
56+
))}
57+
</div>
5758
</div>
5859
</div>
5960
)}

0 commit comments

Comments
 (0)