Skip to content

Commit ab281bb

Browse files
committed
Fix: Increase bottom margin of sidebar to prevent overlap with 'Need Help' section
1 parent 32f3244 commit ab281bb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

components/Sidebar.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export const SidebarLayout = ({ children }: { children: React.ReactNode }) => {
181181
return (
182182
<div className='max-w-[1400px] mx-auto flex flex-col items-center'>
183183
<section>
184-
<div className='bg-primary dark:bg-slate-900 w-full h-12 mt-[4.5rem] z-150 flex relative flex-col justify-center items-center lg:hidden '>
184+
<div className='bg-primary dark:bg-slate-900 w-full h-12 mt-[4.5rem] z-150 flex relative flex-col justify-center items-center lg:hidden '>
185185
<div
186186
className='z-[150] flex w-full bg-primary dark:bg-slate-900 justify-between items-center'
187187
onMouseDown={(e) => e.stopPropagation()}
@@ -197,15 +197,12 @@ export const SidebarLayout = ({ children }: { children: React.ReactNode }) => {
197197
{getStartedPath.includes(pathWtihoutFragment) && (
198198
<h3 className='text-white ml-12'>Getting Started</h3>
199199
)}
200-
201200
{getReferencePath.includes(pathWtihoutFragment) && (
202201
<h3 className='text-white ml-12'>Reference</h3>
203202
)}
204-
205203
{getSpecificationPath.includes(pathWtihoutFragment) && (
206204
<h3 className='text-white ml-12'>Specification</h3>
207205
)}
208-
209206
{router.pathname === null && (
210207
<h3 className='text-white ml-12'>Docs</h3>
211208
)}
@@ -232,12 +229,12 @@ export const SidebarLayout = ({ children }: { children: React.ReactNode }) => {
232229
<div
233230
className={`z-[150] absolute top-10 mt-24 left-0 h-full w-screen bg-white dark:bg-slate-900 dark:shadow-lg transform ${open ? '-translate-x-0' : '-translate-x-full'} transition-transform duration-300 ease-in-out filter drop-shadow-md `}
234231
>
235-
<div className='flex flex-col dark:bg-slate-900'>
232+
<div className='flex flex-col dark:bg-slate-900'>
236233
<DocsNav open={open} setOpen={setOpen} />
237234
</div>
238235
</div>
239236
<div className='dark:bg-slate-800 max-w-[1400px] grid grid-cols-1 lg:grid-cols-4 mx-4 md:mx-12'>
240-
<div className='hidden lg:block mt-24 sticky top-24 h-[calc(100vh-6rem)] overflow-hidden'>
237+
<div className='hidden lg:block mt-24 mb-72 sticky top-24 h-[calc(100vh-6rem)] overflow-hidden'>
241238
<div className='h-full overflow-y-auto scrollbar-hidden'>
242239
<DocsNav open={open} setOpen={setOpen} />
243240
<CarbonAds

0 commit comments

Comments
 (0)