From 303a47d604029ae5d884ed340a8fe838386fc36f Mon Sep 17 00:00:00 2001 From: Ykrej Date: Thu, 3 Jul 2025 11:37:21 -0700 Subject: [PATCH 1/2] fix: maintain filters on sidebar open/close --- src/routes/components/ServerPartsGrid.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/components/ServerPartsGrid.svelte b/src/routes/components/ServerPartsGrid.svelte index 9b86125..df1c914 100644 --- a/src/routes/components/ServerPartsGrid.svelte +++ b/src/routes/components/ServerPartsGrid.svelte @@ -171,7 +171,7 @@ {/if} - {#if gridApi && filterMenuOpen} + {#if gridApi} {#each checkboxFilterDefs as { label, column } (`${uid}-${column}`)}
{label} From 06800c271b84eacc5a2cace1170dbd6f5eb524a9 Mon Sep 17 00:00:00 2001 From: Ykrej Date: Thu, 3 Jul 2025 11:43:22 -0700 Subject: [PATCH 2/2] fix: hide filter elements on minimize --- src/routes/components/ServerPartsGrid.svelte | 44 ++++++++++---------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/src/routes/components/ServerPartsGrid.svelte b/src/routes/components/ServerPartsGrid.svelte index df1c914..dc058cf 100644 --- a/src/routes/components/ServerPartsGrid.svelte +++ b/src/routes/components/ServerPartsGrid.svelte @@ -172,29 +172,31 @@ {/if} {#if gridApi} - {#each checkboxFilterDefs as { label, column } (`${uid}-${column}`)} +
+ {#each checkboxFilterDefs as { label, column } (`${uid}-${column}`)} +
+ {label} + +
+ {/each}
- {label} - + Capacity + value * 1000} + /> +
+
+ Warranty Months + value * 30} + />
- {/each} -
- Capacity - value * 1000} - /> -
-
- Warranty Months - value * 30} - />
{:else if filterMenuOpen}