From 19a7f88a295242c3190dce5492eb793eeca6a1fc Mon Sep 17 00:00:00 2001 From: lzt404 <2596933790@qq.com> Date: Mon, 5 Oct 2026 00:18:11 +0800 Subject: [PATCH] fix(quota): keep Kimi free-account errors inline --- src/pages/QuotaPage.css | 2 ++ src/pages/QuotaPage.tsx | 3 +-- tests/quotaRendering.test.tsx | 6 ++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pages/QuotaPage.css b/src/pages/QuotaPage.css index b5545c5..606b304 100644 --- a/src/pages/QuotaPage.css +++ b/src/pages/QuotaPage.css @@ -64,3 +64,5 @@ .quota-page .quota-reset-footer { order: 3; align-self: flex-end; margin: auto 0 0; min-height: 30px; padding: 5px 10px; border-radius: 7px; color: #347df4; border-color: #d8e5fb; background: #f3f7ff; } .quota-page .quota-reset-footer:hover:not(:disabled) { border-color: #9dbcf4; background: #eaf2ff; } .quota-page .quota-card-message, .quota-page .quota-card-error { min-height: 36px; flex-wrap: wrap; } +.quota-page .quota-card-error > span { display: grid; gap: 4px; min-width: 0; } +.quota-page .quota-card-error small { overflow-wrap: anywhere; font-size: 11px; } diff --git a/src/pages/QuotaPage.tsx b/src/pages/QuotaPage.tsx index b5b1731..60fc9ec 100644 --- a/src/pages/QuotaPage.tsx +++ b/src/pages/QuotaPage.tsx @@ -204,8 +204,7 @@ export function QuotaCard({ file, quota, onRefresh, onReset }: { file: AuthFile; {quota.status === 'idle' ?