From 879f88afe5bfa5d7ae4ed9b979d4986f50983568 Mon Sep 17 00:00:00 2001 From: erio Date: Mon, 13 Apr 2026 17:20:25 +0800 Subject: [PATCH] fix(frontend): compact quota card - inline labels, dropdown type selector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move dimension labels (日限额/周限额/总限额) inline with input row - Replace $ / % toggle buttons with a compact dropdown select - Reduce limit input width (w-28) to give more space for notify toggle - Overall card height significantly reduced --- backend/cmd/server/VERSION | 2 +- .../src/components/account/QuotaLimitCard.vue | 150 +++++------------- .../components/account/QuotaNotifyToggle.vue | 56 +++---- 3 files changed, 61 insertions(+), 147 deletions(-) diff --git a/backend/cmd/server/VERSION b/backend/cmd/server/VERSION index f0c656910d..32fe62c708 100644 --- a/backend/cmd/server/VERSION +++ b/backend/cmd/server/VERSION @@ -1 +1 @@ -0.1.110.31 +0.1.110.32 diff --git a/frontend/src/components/account/QuotaLimitCard.vue b/frontend/src/components/account/QuotaLimitCard.vue index ab109a9a1c..730501268e 100644 --- a/frontend/src/components/account/QuotaLimitCard.vue +++ b/frontend/src/components/account/QuotaLimitCard.vue @@ -196,171 +196,103 @@ const onWeeklyModeChange = (e: Event) => { -
+
- -
-
- $ - +
+ +
+ $ +
-
+
-
-

- - +

+ +

- -
-
- $ - +
+ +
+ $ +
-
+
-
-

- - +

+ +

- +
-
- -
-
- $ - +
+ +
+ $ +
-

{{ t('admin.accounts.quotaTotalLimitHint') }}

+

{{ t('admin.accounts.quotaTotalLimitHint') }}

diff --git a/frontend/src/components/account/QuotaNotifyToggle.vue b/frontend/src/components/account/QuotaNotifyToggle.vue index c7583a01e9..cf7833e4da 100644 --- a/frontend/src/components/account/QuotaNotifyToggle.vue +++ b/frontend/src/components/account/QuotaNotifyToggle.vue @@ -14,15 +14,11 @@ const emit = defineEmits<{ 'update:threshold': [value: number | null] 'update:thresholdType': [value: string | null] }>() - -function toggleType(current: string | null) { - emit('update:thresholdType', current === 'percentage' ? 'fixed' : 'percentage') -}