Skip to content

Commit 56f6410

Browse files
committed
fix(collections): improve section navigation spacing
1 parent 4d109a3 commit 56f6410

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/sidebar/CollectionScrollbar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function CollectionScrollbar({
4646
}, [sections])
4747

4848
return (
49-
<aside className="sticky top-[73px] z-20 w-full shrink-0 bg-[var(--color-bg)] lg:top-[100px] lg:w-[200px] lg:self-start">
49+
<aside className="sticky top-[73px] z-20 w-full shrink-0 bg-[var(--color-bg)] lg:top-[100px] lg:w-[240px] lg:self-start">
5050
<div>
5151
<nav
5252
aria-label={label}
@@ -58,8 +58,8 @@ export default function CollectionScrollbar({
5858
href={`#${section.id}`}
5959
aria-current={activeSection === section.id ? 'location' : undefined}
6060
className={`
61-
shrink-0 whitespace-nowrap text-left text-sm px-[var(--spacing-sm)] py-[var(--spacing-xs)]
62-
transition-all lg:block lg:w-full
61+
shrink-0 whitespace-nowrap px-[var(--spacing-sm)] py-[var(--spacing-xs)] text-left text-sm
62+
transition-all lg:block lg:w-full lg:whitespace-normal
6363
${
6464
activeSection === section.id
6565
? 'bg-[var(--color-hover)] text-[var(--color-text)] font-medium'

0 commit comments

Comments
 (0)