Skip to content

Commit 54d65bf

Browse files
committed
Align left sidebar with logos in footer and navbar
1 parent f6f30a4 commit 54d65bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/sidebar/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export function Sidebar({
449449
<div
450450
className={cn(
451451
"overflow-y-auto",
452-
"grow p-4 md:h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))]",
452+
"grow p-4 md:h-[calc(100vh-var(--nextra-navbar-height)-var(--nextra-menu-height))] xl:pl-0",
453453
showSidebar ? "nextra-scrollbar" : "no-scrollbar",
454454
)}
455455
ref={sidebarRef}
@@ -512,9 +512,7 @@ export function SidebarFooter({
512512
return (
513513
<div
514514
className={cn(
515-
"nextra-sidebar-footer sticky bottom-0",
516-
"flex items-center gap-2 py-4",
517-
"mx-3 px-1", // to hide focused sidebar links
515+
"nextra-sidebar-footer sticky bottom-0 mx-3 flex items-center gap-2 px-1 py-4 xl:-ml-1 xl:mr-0 xl:px-0",
518516
showSidebar
519517
? hasI18n && "justify-end"
520518
: "flex-col flex-wrap justify-center py-4",

0 commit comments

Comments
 (0)