style(dashboard): 缩小「今日费用估算」卡片费用数字字体使其单行显示#181
Merged
Conversation
🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist) Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更概要
缩小 Dashboard「今日费用估算」KPI 卡片中费用数值的字体大小,使
$XX.XXXX + ¥XX.XXXX格式的双币种费用文本能在单行内完整显示,从而使该卡片高度与同行其他 KPI 卡片保持一致。变更原因
「今日费用估算」卡片的费用文本(如
$41.9106 + ¥33.4842)在原32px字体下被折行为多行显示,导致该卡片高度远超其余同行 KPI 卡片,视觉上不协调。实现细节
src/coding/proxy/server/dashboard.py.kpi-value样式块后新增#kpi-cost-today专用样式规则:font-size: 20px— 从 32px 缩小至 20px,确保双币种文本在卡片宽度内单行显示white-space: nowrap— 强制不换行,作为布局安全保障🤖 Generated with Claude Code