fix: current category not highlighted

This commit is contained in:
Maya 2025-07-25 13:31:19 +03:00
parent d20e99dee2
commit 14bf8c45ce
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -234,10 +234,10 @@
<div class="flex items-center justify-between">
{#each filteredData.categories as category}
<button
class="flex-grow text-lg text-muted hover:text-muted/20 border-b-[1px] pb-2 capitalize
{currentCategory === category
class="flex-grow text-lg hover:text-muted/20 border-b-[1px] pb-2 capitalize {currentCategory ===
category
? 'text-accent border-b-accent'
: 'border-b-separator'}"
: 'border-b-separator text-muted'}"
onclick={() => selectCategory(category)}
>
{category}