Skip to content

Commit 59bb6dc

Browse files
committed
add padding/margin right for top nav items + separator
1 parent 70a88ea commit 59bb6dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

beta/src/components/Layout/Sidebar/SidebarRouteTree.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ export function SidebarRouteTree({
148148
{index !== 0 && (
149149
<li
150150
role="separator"
151-
className="mt-4 mb-2 ml-5 border-b border-border dark:border-border-dark"
151+
className="mt-4 mb-2 ml-5 xs:mx-5 border-b border-border dark:border-border-dark"
152152
/>
153153
)}
154154
<h3
155155
className={cn(
156-
'mb-1 text-sm font-bold ml-5 text-tertiary dark:text-tertiary-dark',
156+
'mb-1 text-sm font-bold ml-5 xs:mx-5 text-tertiary dark:text-tertiary-dark',
157157
index !== 0 && 'mt-2'
158158
)}>
159159
{sectionHeader}

beta/src/components/Layout/TopNav/TopNav.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export default function TopNav({
302302
className="w-full lg:h-auto grow pr-0 lg:pr-5 pt-4 lg:py-6 md:pt-4 lg:pt-4 scrolling-touch scrolling-gpu">
303303
{/* No fallback UI so need to be careful not to suspend directly inside. */}
304304
<Suspense fallback={null}>
305-
<div className="pl-3 xs:pl-5 xs:gap-0.5 xs:text-base overflow-x-scroll flex flex-row lg:hidden text-base font-bold text-secondary dark:text-secondary-dark">
305+
<div className="pl-3 xs:px-5 xs:gap-0.5 xs:text-base flex flex-row lg:hidden text-base font-bold text-secondary dark:text-secondary-dark">
306306
<NavItem isActive={section === 'learn'} url="/learn">
307307
Learn
308308
</NavItem>
@@ -322,7 +322,7 @@ export default function TopNav({
322322
</div>
323323
<div
324324
role="separator"
325-
className="ml-5 mt-4 mb-2 border-b border-border dark:border-border-dark"
325+
className="ml-5 xs:mx-5 mt-4 mb-2 border-b border-border dark:border-border-dark"
326326
/>
327327
<SidebarRouteTree
328328
// Don't share state between the desktop and mobile versions.

0 commit comments

Comments
 (0)