Repository navigation
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a narrowly scoped browser-toolbar layout fix: it adds 5px of height so input focus rings are not clipped and correspondingly adjusts the guest viewport offset and available height. The production impact is localized and covered by updated layout tests, with no product-setting, schema, infrastructure, or static-analysis changes. Notes:
You can add or adjust custom eligibility rules. Learn more. |
|
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 (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe browser device toolbar height increases from 32px to 37px. Device-layout and responsive viewport-size test expectations change to match the updated height. ChangesDevice viewport layout
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to The toolbar reserves additional space for the size-field focus rings, with layout expectations updated accordingly. No material merge-blocking risk is evident. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
What Changed
Raised
BROWSER_DEVICE_TOOLBAR_HEIGHTfrom 32px to 37px and updated the layout tests that pin the guest offset and framed area.Why
The device toolbar in the desktop in-app browser is a horizontal scroll container, so it also clips vertically. Its 32px border-box height (31px of content above the 1px divider) held the 30px compact width/height inputs with about half a pixel to spare, so their 3px focus ring was cut off on the top and bottom.
37px leaves 36px of content: the 30px control plus the full 3px ring on each side. The guest webview is positioned from the same constant (
resolveBrowserDeviceViewportLayout), so it moves down with the toolbar instead of overlapping it or leaving a gap. Only the desktop Electron host renders this toolbar; web and mobile are unaffected.Tested with
vp test run apps/web/src/browser/browserViewportLayout.test.ts(the updated expectations fail on the old height), targeted lint, the@t3tools/webtypecheck, and by focusing the viewport height field invp run dev:desktopon macOS.Closes #13607
UI Changes
Before:

After:

Written with the help of an AI agent: Claude Opus 5.5 via Claude Code, running in T3 Code.
Summary by CodeRabbit