From 9895e265144a1bfec967d12570ca875e2b3377c1 Mon Sep 17 00:00:00 2001 From: Liam Bigelow <40188355+bglw@users.noreply.github.com> Date: Fri, 1 Jul 2022 16:57:15 +1200 Subject: [PATCH] Refining Pagefind UI --- pagefind_ui/svelte/filters.svelte | 90 ++++++++++++++++--------------- pagefind_ui/svelte/ui.svelte | 12 +++-- 2 files changed, 57 insertions(+), 45 deletions(-) diff --git a/pagefind_ui/svelte/filters.svelte b/pagefind_ui/svelte/filters.svelte index c5c5f578..0a360710 100644 --- a/pagefind_ui/svelte/filters.svelte +++ b/pagefind_ui/svelte/filters.svelte @@ -3,50 +3,53 @@ export const selected_filters = {}; -
- Filters - {#if available_filters} - {#each Object.entries(available_filters) as [filter, values]} -
- {filter.replace(/^(\w)/, (c) => - c.toLocaleUpperCase() - )} -
- {filter} + Filters + {#if available_filters} + {#each Object.entries(available_filters) as [filter, values]} +
+ {filter.replace(/^(\w)/, (c) => + c.toLocaleUpperCase() + )} - {#each Object.entries(values) as [value, count]} -
+ {filter} - - -
- {/each} -
-
- {/each} - {:else} -

..........

- {/if} -
+ + + + {/each} + + + {/each} + {:else} +

..........

+ {/if} + +{/if}