Repository navigation
fix(web,mobile): limit bars keep the even-spending tick visible - #16937
charlielockyer-rice wants to merge 1 commit into
Conversation
The even-spending marker on limit bars was a 1px line at 60% opacity. It overhung the bar and disappeared over same-colored fills, such as Codex's bar in either theme, in the /usage-limits result on web and in limit rows on mobile. It is now a 2px tick in a gap cut through the bar, kept inside the bar's ends. Web cuts the gap with a CSS mask so it also works on the composer's translucent surface; mobile clips the bar either side of the tick. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe mobile and web usage limit bars now show a clamped, opaque 2px time-left tick with a gap in the quota fill. The mobile bar measures its width and omits the tick and gap when the elapsed position or width is unavailable. ChangesUsage limit bars
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to This change makes the even-spending tick on usage limit bars more visible on web and mobile. No concrete merge-blocking risk was found. Mobile device and Safari rendering are not yet verified, so a quick visual check there is advisable. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
The even-spending marker on limit bars is a 1px line at 60% opacity. It disappears over a same-colored fill: on Codex's bar in either theme, it's invisible whenever it falls inside the fill. On web it also overhangs the bar and renders soft at a half-pixel offset. Mobile limit rows draw the same marker.
It's now a 2px tick in a small gap cut through the bar, kept inside the bar's ends. Web cuts the gap with a CSS mask, so it also works on the composer's translucent surface, where a solid outline would leave a halo. Mobile clips the bar on either side of the tick. Position, pace and tooltip content are unchanged, except that the tooltip says "tick" instead of "line". This is a small, obvious-bug fix: the marker can't be seen in a common case.
Before / after (
/usage-limitsresult, Codex account, light and dark):Checked:
vp run --filter @t3tools/web typecheckandvp run --filter @t3tools/mobile typecheck: clean.vp linton the changed files: no warnings.vp test run apps/web/src/components/usage apps/web/src/components/chat apps/mobile/src/features/usage: 1079 passed.Mobile (iPad Pro simulator, iOS 27, dev client;
/usage-limitsin the composer, same Codex account):Not checked: Safari, Android.
Implementation: Claude Opus 5.5 (1M context), Claude Code harness in T3 Code.
🤖 Generated with Claude Code