Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
HoodieRocks committed Nov 11, 2023
2 parents b6b9b0f + 1cf6230 commit fcf5d2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/utility/Dropdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
{#each options as opt, index}
<li class="my-1">
<button
class="h-9 flex w-full cursor-pointer rounded-[4px] p-1.5 text-left hover:bg-dph-orange dark:text-zinc-100 dark:hover:bg-dph-orange
class="flex h-9 w-full cursor-pointer rounded-[4px] p-1.5 text-left hover:bg-dph-orange dark:text-zinc-100 dark:hover:bg-dph-orange
{selected == options[index] ? 'dark:bg-zinc-700/70' : ''}"
on:click="{() => chooseOption(index)}">{opt}</button>
</li>
Expand Down
5 changes: 3 additions & 2 deletions src/routes/projects/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
let sortDropdownOpen: boolean;
let tagDropdownOpen: boolean;
let query = "";
let tag = data.category || ""
let tag = data.category || "";
let sort = "Updated";
let searchTime = 0;
let layout = browser
Expand Down Expand Up @@ -116,7 +116,8 @@
class="flex h-11 items-center rounded-l-lg bg-slate-300 px-4 text-center dark:bg-zinc-700 dark:text-white">
Tag:
</p>
<Dropdown options="{["", ...categories]}"
<Dropdown
options="{['', ...categories]}"
bind:expand="{tagDropdownOpen}"
bind:selected="{tag}"
on:change="{changeTag}"
Expand Down

0 comments on commit fcf5d2d

Please sign in to comment.