From ac55443278327228c3f9f1f19045a55cfb9bdbce Mon Sep 17 00:00:00 2001 From: erio Date: Mon, 13 Apr 2026 17:04:23 +0800 Subject: [PATCH] fix(frontend): collapsible quota card and compact notify layout - QuotaLimitCard: add collapse/expand toggle (chevron icon + click header) - QuotaNotifyToggle: show $ or % suffix in threshold input - Reduce vertical spacing between reset mode hint and notify toggle --- backend/cmd/server/VERSION | 2 +- .../src/components/account/QuotaLimitCard.vue | 42 ++++++++++--------- 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/backend/cmd/server/VERSION b/backend/cmd/server/VERSION index e52af706..a7975f29 100644 --- a/backend/cmd/server/VERSION +++ b/backend/cmd/server/VERSION @@ -1 +1 @@ -0.1.110.28 +0.1.110.30 diff --git a/frontend/src/components/account/QuotaLimitCard.vue b/frontend/src/components/account/QuotaLimitCard.vue index 682f51aa..832fee96 100644 --- a/frontend/src/components/account/QuotaLimitCard.vue +++ b/frontend/src/components/account/QuotaLimitCard.vue @@ -66,15 +66,17 @@ const enabled = computed(() => ) const localEnabled = ref(enabled.value) +const collapsed = ref(false) // Sync when props change externally watch(enabled, (val) => { localEnabled.value = val }) -// When toggle is turned off, clear all values +// When toggle is turned off, clear all values and expand watch(localEnabled, (val) => { if (!val) { + collapsed.value = false emit('update:totalLimit', null) emit('update:dailyLimit', null) emit('update:weeklyLimit', null) @@ -162,13 +164,19 @@ const onWeeklyModeChange = (e: Event) => {