Repository navigation
fix(web): keep the weekly estimate on the mobile cost line - #7
Merged
Merged
Conversation
Show the weekly estimate as "$980.59 · $2,579.54" right after the spent amount, on the same line as Tokens and requests, instead of on its own line. Fable windows show their own estimate the same way; unknown estimates are omitted. With four-digit amounts the line fits from 360px. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
问题
手机额度窗口的周预估单独占一行,Fable 也各占一行,浪费纵向空间。之前「$980.59 · $2,579.54」的写法会换行,原因是旧样式在有预估时强制费用与用量各占一整行(
flex-basis: 100%),并非宽度不够。变化
验证
bun test tests326 pass,bun run build通过,所改文件 Prettier 与git diff --check通过。bun run test:browser、tests/quota-pwa-layout.browser.ts(48 种状态)、tests/global-layout.browser.ts通过。🤖 Generated with Claude Code