Skip to content

Commit f1c4c46

Browse files
authored
Fix overflow-x on AppContent (#88)
* Fix overflow-x on AppContent * Set overflow-x-auto in dashboard.tsx
1 parent 08aa6b9 commit f1c4c46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/js/layouts/app/app-sidebar-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function AppSidebarLayout({ children, breadcrumbs = [] }: PropsWi
99
return (
1010
<AppShell variant="sidebar">
1111
<AppSidebar />
12-
<AppContent variant="sidebar">
12+
<AppContent variant="sidebar" className="overflow-x-hidden">
1313
<AppSidebarHeader breadcrumbs={breadcrumbs} />
1414
{children}
1515
</AppContent>

resources/js/pages/dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function Dashboard() {
1414
return (
1515
<AppLayout breadcrumbs={breadcrumbs}>
1616
<Head title="Dashboard" />
17-
<div className="flex h-full flex-1 flex-col gap-4 rounded-xl p-4">
17+
<div className="flex h-full flex-1 flex-col gap-4 rounded-xl p-4 overflow-x-auto">
1818
<div className="grid auto-rows-min gap-4 md:grid-cols-3">
1919
<div className="relative aspect-video overflow-hidden rounded-xl border border-sidebar-border/70 dark:border-sidebar-border">
2020
<PlaceholderPattern className="absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20" />

0 commit comments

Comments
 (0)