Skip to content

Commit f964b0a

Browse files
committed
style: TopNavItem 컴포넌트의 레이아웃 수정 및 텍스트 표시 방식 변경
1 parent c2cac2a commit f964b0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/TopNavItem.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const {pathname, label, icon} = Astro.props;
1111
const active = pathname === (Astro.url.pathname.replace(/\/+$/, '') || "/");
1212
---
1313

14-
<a href={pathname} class=`px-4 flex flex-row items-center gap-3 cursor-pointer rounded-full text-bright select-none transition duration-300 ease-in-out
14+
<a href={pathname} class=`px-4 h-full flex flex-row justify-center items-center gap-3 cursor-pointer rounded-full text-bright select-none transition duration-300 ease-in-out
1515
hover:bg-bright hover:text-gray-950 hover:scale-110
1616
${active && 'bg-bright text-gray-950 scale-110'}`>
1717
<slot/>
18-
<span>{label}</span>
18+
{label}
1919
</a>

0 commit comments

Comments
 (0)