Fix settings tab clickable area by extending it beyond just the text (#8240)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Xingyao Wang
2025-05-04 01:07:41 +08:00
committed by GitHub
parent 985e20d529
commit 9babd756e5

View File

@@ -58,7 +58,7 @@ function SettingsScreen() {
<nav
data-testid="settings-navbar"
className="flex items-end gap-12 px-9 border-b border-tertiary"
className="flex items-end gap-6 px-9 border-b border-tertiary"
>
{navItems.map(({ to, text }) => (
<NavLink
@@ -67,12 +67,12 @@ function SettingsScreen() {
to={to}
className={({ isActive }) =>
cn(
"border-b-2 border-transparent py-2.5",
"border-b-2 border-transparent py-2.5 px-4 min-w-[40px] flex items-center justify-center",
isActive && "border-primary",
)
}
>
<ul className="text-[#F9FBFE] text-sm">{text}</ul>
<span className="text-[#F9FBFE] text-sm">{text}</span>
</NavLink>
))}
</nav>