Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: dashboard homepage moble layout responsiveness. #1331

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading