8000 fix(web): keep the quota reset time on one line for 0.9.10 by InfinityPacer · Pull Request #38 · InfinityPacer/meterleaf · GitHub
[go: up one dir, main page]

Skip to content

fix(web): keep the quota reset time on one line for 0.9.10 - #38

Merged
InfinityPacer merged 2 commits into
mainfrom
fix/quota-reset-nowrap
Oct 14, 2026
Merged

InfinityPacer merged 2 commits into
mainfrom
fix/quota-reset-nowrap

Conversation

@InfinityPacer
Copy link
Copy Markdown
Owner

问题

手机首页额度卡片中,5h 额度刚重置时右侧显示「16:20 已重置」,在 iPhone Safari 上被折成「16:20 已重」和「置」两行。重置时间列允许在任意字符处断行(overflow-wrap: anywhere),WebKit 计算列宽时把这一列压到了比文字更窄。

改动

  • 重置时间改为不换行,列宽不会小于文字本身。窄屏时由左侧标题让出宽度并换行,与桌面账户列表的做法一致。
  • 版本升到 0.9.10,更新 CHANGELOG。数据库结构版本未变,升级无需备份。

验证

  • bun test tests 441 通过,bun run build、所改文件 Prettier 检查与 git diff --check 通过。
  • 用 Playwright WebKit 渲染真实手机首页额度卡片(5h 刚重置、7d、Fable 三个窗口),320 与 393 宽度下三个重置时间均为单行。
  • 本地 WebKit 未能复现原始折行,修复在 iPhone 上的效果待升级后确认。

🤖 Generated with Claude Code

InfinityPacer and others added 2 commits October 14, 2026 16:25
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@InfinityPacer
InfinityPacer merged commit 3048d8c into main Oct 14, 2026
2 checks passed
@InfinityPacer
InfinityPacer deleted the fix/quota-reset-nowrap branch October 14, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0