From ae2da31380d7efa67542b8d72699b6a42be6fa09 Mon Sep 17 00:00:00 2001 From: Zyy Date: Thu, 17 Sep 2026 00:45:55 +0800 Subject: [PATCH] fix(accounts): improve provider selection and forecast hints Expand provider choices to full-width labeled options and move the forecast caveat into an icon-only explanation popover. Validation: frontend lint, typecheck and build passed; verified narrow-screen selection, keyboard navigation and explanation popover. Available forecast data layout was not exercised because local observations are insufficient. Co-authored-by: Codex --- .../AccountProviderChooser.vue | 4 ++-- .../ForecastCapacity.vue | 20 +++++++------------ .../AccountQuotaForecastModal/index.vue | 15 +++++++------- 3 files changed, 16 insertions(+), 23 deletions(-) diff --git a/frontend/src/views/accounts/components/AccountCreateModal/AccountProviderChooser.vue b/frontend/src/views/accounts/components/AccountCreateModal/AccountProviderChooser.vue index f79f5b5e3..1dc849d8d 100644 --- a/frontend/src/views/accounts/components/AccountCreateModal/AccountProviderChooser.vue +++ b/frontend/src/views/accounts/components/AccountCreateModal/AccountProviderChooser.vue @@ -50,8 +50,8 @@ function selectProvider(value: string) { label="选择账号平台" :options="providers" :disabled="disabled" - display="icon" - class="w-31" + size="lg" + class="w-full" @update:model-value="selectProvider" /> diff --git a/frontend/src/views/accounts/components/AccountQuotaForecastModal/ForecastCapacity.vue b/frontend/src/views/accounts/components/AccountQuotaForecastModal/ForecastCapacity.vue index 32c36ce7b..3c5c4518f 100644 --- a/frontend/src/views/accounts/components/AccountQuotaForecastModal/ForecastCapacity.vue +++ b/frontend/src/views/accounts/components/AccountQuotaForecastModal/ForecastCapacity.vue @@ -71,19 +71,13 @@ const metrics = computed(() => [ -
-
- 更新时的剩余额度 - - {{ forecast.remainingTokensDisplay }} Tokens - / - {{ forecast.remainingUsdDisplay }} - -
-

-

+
+ 更新时的剩余额度 + + {{ forecast.remainingTokensDisplay }} Tokens + / + {{ forecast.remainingUsdDisplay }} +
diff --git a/frontend/src/views/accounts/components/AccountQuotaForecastModal/index.vue b/frontend/src/views/accounts/components/AccountQuotaForecastModal/index.vue index b5441cfca..7617769dc 100644 --- a/frontend/src/views/accounts/components/AccountQuotaForecastModal/index.vue +++ b/frontend/src/views/accounts/components/AccountQuotaForecastModal/index.vue @@ -1,11 +1,12 @@