feature/sidebar #8

Merged
ilia merged 50 commits from feature/sidebar into main 2026-01-03 10:56:23 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 90899c0b3b - Show all commits

View File

@@ -5,7 +5,7 @@ import { categoryFilterStore } from '../store/categoryFilterStore';
const { categories } = $derived($categoryFilterStore); const { categories } = $derived($categoryFilterStore);
function didCategoryToggle(categoryId: string) { function didCategoryToggle(categoryId: string) {
if (categories?.find(category => category.id === categoryId)) { if (categories?.find(category => category.id === categoryId)?.selected) {
categoryFilterStore.deselectCategory(categoryId); categoryFilterStore.deselectCategory(categoryId);
} else { } else {
categoryFilterStore.selectCategory(categoryId); categoryFilterStore.selectCategory(categoryId);

View File

@@ -129,7 +129,7 @@ const hasSelection = $derived(selectedCount > 0);
<Checkbox <Checkbox
id={category.id} id={category.id}
checked={category.selected} checked={category.selected}
onchange={() => onCategoryToggle(category.id)} onclick={() => onCategoryToggle(category.id)}
class=" class="
shrink-0 cursor-pointer transition-all duration-150 ease-out shrink-0 cursor-pointer transition-all duration-150 ease-out
data-[state=checked]:scale-100 data-[state=checked]:scale-100