Skip to content

Commit 6fc9878

Browse files
committed
style(layout): update border styling in layout components for improved visual consistency
1 parent 484bb7e commit 6fc9878

6 files changed

Lines changed: 8 additions & 6 deletions

File tree

app/[locale]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export default async function LocaleLayout({ children, params }: Props) {
192192
>
193193
<SidebarProvider>
194194
<AppSidebar />
195-
<SidebarInset className="border lg:border-l-0">
195+
<SidebarInset className="border lg:border-y-0 lg:border-l-0">
196196
<Header />
197197
<SearchCommand />
198198
<div data-pagefind-body className="relative">

app/[locale]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default async function Page({ params }: Props) {
6464
/>
6565
<div
6666
data-pagefind-ignore
67-
className="relative flex h-[calc(100svh-4rem)] items-center justify-center lg:h-svh"
67+
className="relative flex h-[calc(100svh-4rem)] items-center justify-center lg:h-svh lg:border-y"
6868
>
6969
<Particles className="pointer-events-none absolute inset-0 opacity-80" />
7070
<div className="mx-auto w-full max-w-xl px-6">

app/[locale]/search/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function Page() {
1414
<>
1515
<div
1616
data-pagefind-ignore
17-
className="relative min-h-[calc(100svh-4rem)] py-10 lg:min-h-svh lg:py-26"
17+
className="relative min-h-[calc(100svh-4rem)] py-10 lg:min-h-svh lg:border-t lg:py-26"
1818
>
1919
<div className="mx-auto w-full max-w-xl px-6">
2020
<h1 className="mb-8 font-medium text-4xl leading-none tracking-tighter md:text-center">

components/shared/sidebar-right.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function SidebarRight({
131131

132132
<Sidebar
133133
collapsible="none"
134-
className="sticky top-16 hidden h-[calc(100svh-4rem)] border-l xl:flex"
134+
className="sticky top-16 hidden h-[calc(100svh-4rem)] border-b border-l xl:flex"
135135
side="right"
136136
{...props}
137137
>

components/sidebar/header-container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function HeaderContainer({ children }: { children: ReactNode }) {
1414
return (
1515
<header
1616
className={cn(
17-
"sticky top-0 z-10 flex h-16 shrink-0 items-center gap-2 border-b bg-background/60 backdrop-blur-sm",
17+
"sticky top-0 z-10 flex h-16 shrink-0 items-center gap-2 border-y bg-background/60 backdrop-blur-sm",
1818
// If the pathname is the home page, don't show the header
1919
hideHeader && "border-0 lg:hidden"
2020
)}

components/ui/block-art.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ export function BlockArt({
6060
}, [totalCells, animatedCellCount, animationInterval]);
6161

6262
return (
63-
<section className={cn("h-full w-full bg-border pt-px", className)}>
63+
<section
64+
className={cn("h-full w-full bg-border pt-px lg:py-px", className)}
65+
>
6466
<div
6567
className="h-full w-full"
6668
style={{

0 commit comments

Comments
 (0)