Skip to content

Commit

Permalink
Merge pull request #1331 from abdulmalikyusuf/fix/dashboard-layout
Browse files Browse the repository at this point in the history
Fix: dashboard homepage moble layout responsiveness.
  • Loading branch information
incredible-phoenix246 authored Aug 24, 2024
2 parents 33aad3d + a8efe15 commit 67ddeea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const links = [

export default function UserMetricsLayout({ children }: PropsWithChildren) {
return (
<div className="flex h-full flex-col gap-[37px] bg-background">
<div className="flex h-full flex-col gap-[37px] bg-background p-4">
<div className="flex flex-wrap items-center justify-between gap-x-6 gap-y-2 pt-6">
<div className="space-y-6">
<h1 className="text-2xl font-semibold lg:text-[30px]">Dashboard</h1>
Expand Down
2 changes: 1 addition & 1 deletion src/app/dashboard/(user-dashboard)/(user-metrics)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function DashboardOverview() {
<OverviewRevenue />
</div>
<div className="flex flex-wrap gap-4">
<OverviewChart className="flex-grow basis-full md:basis-1/2 lg:max-w-[787px]" />
<OverviewChart className="w-full basis-full md:basis-1/2 lg:max-w-[787px]" />
<div className="flex-1 flex-grow md:min-w-[400px]">
<OverviewSales />
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/app/dashboard/(user-dashboard)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ export default function AdminLayout({
<UserNavbar />
<div className="relative mx-auto w-full bg-white max-lg:overflow-hidden xl:px-4">
<div className="flex">
<SettingsSidebar />
<div className="w-full p-4">
<div className="shrink-0">
<SettingsSidebar />
</div>
<div className="w-[calc(100%_-_50px)] flex-1">
<Suspense>{children}</Suspense>
</div>
</div>{" "}
Expand Down

0 comments on commit 67ddeea

Please sign in to comment.