Skip to content

Commit 083e73a

Browse files
bchapuisclaude
andcommitted
Flatten app layout with straight-line borders
Replace rounded card-style chrome (rounded-md/-lg, margin gaps) with flush straight borders on the app shell and sidebar inset, matching the static site's layout aesthetic. Bump sidebar top padding so the first nav group sits lower below the header. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b5927a9 commit 083e73a

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

apps/app/src/components/app-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function AppHeader() {
2626
"bg-neutral-300/50 hover:bg-neutral-300/50 dark:bg-neutral-600/50 dark:hover:bg-neutral-600/50";
2727

2828
return (
29-
<header className="flex h-12 shrink-0 items-center justify-between gap-2 ps-5 pe-3">
29+
<header className="flex h-12 shrink-0 items-center justify-between gap-2 ps-5 pe-3 border-b">
3030
<div className="flex items-center gap-2">
3131
<Link to="/" className="flex items-center gap-2">
3232
<Bot className="h-6 w-6" />

apps/app/src/components/layouts/app-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function AppLayout({ children, sidebar, className }: AppLayoutProps) {
3939
) : (
4040
<div
4141
className={cn(
42-
"relative flex w-full flex-1 flex-col border rounded-md mx-2 mb-2 bg-background overflow-auto",
42+
"relative flex w-full flex-1 flex-col bg-background overflow-auto",
4343
className
4444
)}
4545
>

apps/app/src/components/sidebar/nav-main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function NavMain({ groups, footerItems }: NavMainProps) {
8686
const { toggleSidebar, open } = useSidebar();
8787

8888
return (
89-
<div className="flex-1 flex flex-col justify-between py-2 pb-0">
89+
<div className="flex-1 flex flex-col justify-between pt-4 pb-0">
9090
<div className="flex flex-col gap-2 px-4">
9191
{groups.map((group, index) => (
9292
<SidebarGroup

apps/app/src/components/ui/sidebar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ const SidebarInset = React.forwardRef<
305305
<main
306306
ref={ref}
307307
className={cn(
308-
"relative flex w-full flex-1 flex-col border rounded-lg mr-2 mb-2 bg-background overflow-hidden",
309-
"md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
308+
"relative flex w-full flex-1 flex-col border-l bg-background overflow-hidden",
310309
className
311310
)}
312311
{...props}

0 commit comments

Comments
 (0)