style(settings): polish sidebar nav hover and active states (#5458)
This commit is contained in:
parent
8b783274f2
commit
95af735062
Binary file not shown.
|
After Width: | Height: | Size: 156 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 156 KiB |
|
|
@ -140,10 +140,10 @@ export function SettingsSidebar({
|
|||
const searchShortcutHint = useShortcutLabel('settings.search')
|
||||
const navItemClassName = (isActive: boolean): string =>
|
||||
cn(
|
||||
'flex w-full items-center gap-2 rounded-lg px-3 py-1.5 text-left text-[13px] outline-none transition-colors focus-visible:ring-[3px] focus-visible:ring-worktree-sidebar-ring/50',
|
||||
'flex w-full items-center gap-2 rounded-lg px-3 py-1.5 text-left text-[13px] outline-none transition-colors duration-150 focus-visible:ring-[3px] focus-visible:ring-worktree-sidebar-ring/50',
|
||||
isActive
|
||||
? 'bg-worktree-sidebar-accent font-medium text-worktree-sidebar-accent-foreground'
|
||||
: 'text-worktree-sidebar-foreground/60 hover:bg-worktree-sidebar-foreground/8 hover:text-worktree-sidebar-foreground'
|
||||
? 'bg-worktree-sidebar-accent font-medium text-worktree-sidebar-accent-foreground ring-1 ring-worktree-sidebar-ring/25'
|
||||
: 'text-worktree-sidebar-foreground/60 hover:bg-worktree-sidebar-accent/60 hover:text-worktree-sidebar-foreground'
|
||||
)
|
||||
const installStatusLabel = (status: SettingsNavInstallStatus): string => {
|
||||
switch (status) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue