Skip to content

Commit 2c72682

Browse files
author
Numan
committed
fix: adjust margin for sidebar link items for better spacing
1 parent 080372e commit 2c72682

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

assets/preview/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import card from '@/assets/preview/card.svg';
33
import buttons from '@/assets/preview/buttons.svg';
44
import motionNumber from '@/assets/preview/motion-number.svg';
55
import clippath from '@/assets/preview/clip-path.svg';
6+
7+
68
const preview = {
79
horizontascroll,
810
motionNumber,

components/website/sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function DocsSidebar() {
6161
<Link
6262
href={link.href}
6363
onClick={() => addVisitedPage(link.href, link.name)}
64-
className={`flex gap-2 group font-medium items-center py-1 transition-all ${
64+
className={`flex gap-2 group font-medium items-center py-1 my-2 transition-all ${
6565
link.href === pathname
6666
? 'active-nav'
6767
: 'text-slate-600 hover:text-slate-900 dark:text-slate-400 dark:hover:text-white'
@@ -88,7 +88,7 @@ function DocsSidebar() {
8888
<>
8989
<li
9090
key={link.href}
91-
className={`2xl:text-sm text-[0.81em] flex items-center gap-1 dark:hover:text-white 2xl:py-1 py-0.5 pl-2 border-l transition-all ${
91+
className={`2xl:text-sm text-[0.81em] flex items-center gap-1 dark:hover:text-white my-3 2xl:py-1 py-0.5 pl-2 border-l transition-all ${
9292
link.href === pathname
9393
? 'dark:border-white border-black text-black dark:text-white font-semibold'
9494
: 'dark:text-slate-400 2xl:font-normal font-medium hover:border-black/60 dark:hover:border-white/50 text-slate-500 hover:text-slate-900'

0 commit comments

Comments
 (0)