Skip to content

Commit 915e5dd

Browse files
committed
fix: main content now properly centers when sidebar is closed — remove hardcoded lg:pl-[280px] padding
1 parent c45894a commit 915e5dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function Layout({ children }: LayoutProps) {
5454
<Sidebar isOpen={sidebarOpen} onClose={closeSidebar} />
5555

5656
<main
57-
className="transition-all duration-200 lg:pl-[280px]"
57+
className={`transition-all duration-200 ${sidebarOpen ? 'lg:pl-[280px]' : ''}`}
5858
style={{
5959
paddingTop: '56px',
6060
minHeight: '100dvh',

0 commit comments

Comments
 (0)