Fix x button vertical centering in filter scripts search bar

- Removed size='icon' constraint that limited button height
- Changed positioning to use inset-y-0 with h-full to match input field height
- Added flex items-center justify-center for proper icon centering
- Fixes hover background height mismatch between light and dark themes
This commit is contained in:
Michel Roegl-Brunner
2025-11-07 13:03:22 +01:00
parent 21f723bff6
commit e460a05f91

View File

@@ -158,8 +158,7 @@ export function FilterBar({
<Button
onClick={() => updateFilters({ searchQuery: "" })}
variant="ghost"
size="icon"
className="absolute inset-y-0 right-0 pr-3 text-muted-foreground hover:text-foreground"
className="absolute inset-y-0 right-0 flex items-center justify-center pr-3 h-full text-muted-foreground hover:text-foreground"
>
<svg
className="h-5 w-5"