Skip to content

Commit f9b63fd

Browse files
fix: replace hardcoded sidebar width (342px) with responsive Tailwind class
1 parent 9fddeca commit f9b63fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Layout/SidebarNav/SidebarNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function SidebarNav({
4141
'sticky top-0 lg:bottom-0 lg:h-[calc(100vh-4rem)] flex flex-col'
4242
)}>
4343
<div
44-
className="overflow-y-scroll no-bg-scrollbar lg:w-[342px] grow bg-wash dark:bg-wash-dark"
44+
className="overflow-y-scroll no-bg-scrollbar lg:w-80 grow bg-wash dark:bg-wash-dark"
4545
style={{
4646
overscrollBehavior: 'contain',
4747
}}>

src/components/Layout/TopNav/TopNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ export default function TopNav({
403403
{isMenuOpen && (
404404
<div
405405
ref={scrollParentRef}
406-
className="overflow-y-scroll isolate no-bg-scrollbar lg:w-[342px] grow bg-wash dark:bg-wash-dark">
406+
className="overflow-y-scroll isolate no-bg-scrollbar lg:w-80 grow bg-wash dark:bg-wash-dark">
407407
<aside
408408
className={cn(
409409
`lg:grow lg:flex flex-col w-full pb-8 lg:pb-0 lg:max-w-custom-xs z-40`,

0 commit comments

Comments
 (0)