Skip to content

Commit 1fd31b7

Browse files
Responsive tweak (paddings and breakpoints)
1 parent 739201f commit 1fd31b7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

resources/js/components/app-sidebar-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { type BreadcrumbItem as BreadcrumbItemType } from '@/types';
44

55
export function AppSidebarHeader({ breadcrumbs = [] }: { breadcrumbs?: BreadcrumbItemType[] }) {
66
return (
7-
<header className="border-sidebar-border/50 flex h-16 shrink-0 items-center gap-2 border-b px-4 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12">
7+
<header className="border-sidebar-border/50 flex h-16 shrink-0 items-center gap-2 border-b px-6 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12 md:px-4">
88
<div className="flex items-center gap-2">
99
<SidebarTrigger className="-ml-1" />
1010
<Breadcrumbs breadcrumbs={breadcrumbs} />

resources/js/layouts/settings/layout.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ export default function SettingsLayout({ children }: { children: React.ReactNode
2727
const currentPath = window.location.pathname;
2828

2929
return (
30-
<div className="px-4 py-6">
30+
<div className="p-6 md:px-12">
3131
<Heading title="Settings" description="Manage your profile and account settings" />
3232

33-
<div className="flex flex-col space-y-8 md:flex-row md:space-y-0 md:space-x-12">
34-
<aside className="w-full md:w-1/3 lg:w-1/4 xl:w-1/5">
35-
<nav className="flex flex-col space-y-1 space-x-0">
33+
<div className="flex flex-col space-y-8 lg:flex-row lg:space-y-0 lg:space-x-12">
34+
<aside className="w-full max-w-xl md:w-48">
35+
<nav className="flex flex-col space-y-1 space-x-0 md:-mx-3">
3636
{sidebarNavItems.map((item) => (
3737
<Button
3838
key={item.url}

0 commit comments

Comments
 (0)