fix(web): task durations over an hour no longer wrap in the tasks panel - #13472
jamesvillarrubia wants to merge 1 commit into
Conversation
Fixes pingdotgg#13447 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pingdotgg/t3code/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe task duration label now uses a minimum width instead of a fixed width. Its contents do not wrap. ChangesTask duration label
Estimated code review effort: 1 (Trivial) | ~3 minutes Suggested reviewers: Merge Risk: ⚪ Minimal · up to Long task durations stay on one line and can use the width they need. No material merge risk is evident. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
What Changed
In the composer tasks panel, a step that took over an hour showed its time on two lines (
1h 16m/16s). The duration span inComposerTasksBadge.tsxnow usesmin-w-12 whitespace-nowrapin place ofw-12. Short times keep the 48px right-aligned column. A longer time widens that row's duration column to the left and stays on one line.Fixes #13447
Why
w-12is a fixed 48px box, and1h 16m 16sat 10px is wider than 48px, so the text broke. The step text column isminmax(0, 1fr), so it has room to give up.min-w-12keeps the column alignment from #12165.UI Changes
Before:
After:
Tested on a local dev server with an OpenCode thread's task list, with the duration text set to
1h 16m 16sin the inspector.Checklist
Made with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code
Summary by CodeRabbit