Repository navigation
fix(usage): 修复手机端日志卡片显示不全 - #779
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe usage page now constrains mobile log-card content, wraps long model names, and displays metrics in one column by default and two columns at the ChangesUsage page mobile layout
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to No specific user-facing failure is established by the supplied review context; the change appears mergeable after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
手机端使用日志卡片会被超长模型名或 User-Agent 撑宽,导致部分内容超出视口、显示不全。
本次修复为手机日志列表显式指定单列布局,限制卡片和徽标宽度,并允许长模型名换行;指标区在小屏幕使用单列、在较宽屏幕使用两列。
范围:仅修改
frontend/src/pages/Usage.tsx的手机端日志卡片布局。分支基于上游main,仅包含此修复的一个提交。验证:原修复已通过 320–1023px 布局及桌面显示检查;提交前重新运行的 70 项现有测试和类型检查均通过。移植到上游最新
main无冲突,差异检查通过。Summary by CodeRabbit
smbreakpoint.