next.js
eaae67f6 - DevTools: remove the empty strip in Preferences and mute read-only menu rows (#102286)

Commit
6 hours ago
DevTools: remove the empty strip in Preferences and mute read-only menu rows (#102286) ### What **Preferences** - The rows were a fixed 420px grid inside a 512px panel, so an empty strip ran down the right side under the close button. The panel is now sized to the grid (420px + padding + border) and the grid fills it. - The close icon is inset inside its hit area, so it sat about 10px inside the content edge. The button is pulled out so the X ends in line with the controls. **Menu** - Rows that only report a value (Bundler, Cache Components) had the same label color as rows that open something, so they read as actions. Non-interactive rows now carry `data-interactive="false"` and a muted label. ### Before and after Both columns are at the same scale, in Chrome. | State | Before | After | | --- | --- | --- | | Preferences | <img src="https://github.com/user-attachments/assets/67284412-248a-45a1-913d-1249a655ec5d" width="268" alt="Preferences before"> | <img src="https://github.com/user-attachments/assets/ccab0470-0bec-4cb6-99c1-70aeee12bcb3" width="243" alt="Preferences after"> | | Menu | <img src="https://github.com/user-attachments/assets/f1194fea-30ad-48b7-b89b-88fa4ef4f0cd" width="220" alt="Menu before"> | <img src="https://github.com/user-attachments/assets/1566492f-68ef-44fa-b610-ae2af8acf1fe" width="220" alt="Menu after"> | ### Testing Checked the equivalent styles against the `16.5.0-canary.62` overlay in Chrome: the controls end at 461px and the X at 460px in a panel whose inner edge is 461px. Prettier passes on the changed files. No local build or unit test run; relying on CI for those. ### Still to investigate Not addressed here: - The menu's hover highlight flickers in Chrome on an external monitor (not on the built-in display). - The theme select's popup opens in the wrong place on that same monitor. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Author
Parents
Loading