Repository navigation
Commit 950e71c
refactor(web): one minimum width for menus, three widths for popovers
MenuPopup decided whether to apply its minimum width by scanning the
incoming className for w-/min-w- tokens, and 37 menus picked widths from
fourteen values. Menus size to their content; they now share one minimum
(10rem) and a viewport cap, and no width prop. Popovers hold prose and
forms, so a fixed width is real: width="sm|md|lg" (16, 20, 24rem). Select
lists match their trigger, as SelectPopup already does.
Visible effect: menus that had forced a width of 14-24rem now fit their
content from a 10rem floor; popovers snap to the nearest of three widths
(e.g. 18rem becomes 20rem, 28rem becomes 24rem); the keybinding selects
match their trigger instead of a fixed floor.
Co-Authored-By: Claude Fable 5 <[email protected]>1 parent b6fbe37 commit 950e71c
43 files changed
Lines changed: 69 additions & 98 deletions
File tree
- apps/web/src
- browser
- components
- chat
- device
- files
- preview
- pullRequest
- settings
- sidebar
- ui
- usage
- routes
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
| 681 | + | |
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
| 695 | + | |
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1793 | 1793 | | |
1794 | 1794 | | |
1795 | 1795 | | |
1796 | | - | |
| 1796 | + | |
1797 | 1797 | | |
1798 | 1798 | | |
1799 | 1799 | | |
| |||
1859 | 1859 | | |
1860 | 1860 | | |
1861 | 1861 | | |
1862 | | - | |
1863 | | - | |
1864 | | - | |
| 1862 | + | |
1865 | 1863 | | |
1866 | 1864 | | |
1867 | 1865 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2747 | 2747 | | |
2748 | 2748 | | |
2749 | 2749 | | |
2750 | | - | |
| 2750 | + | |
2751 | 2751 | | |
2752 | 2752 | | |
2753 | 2753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
263 | | - | |
| 261 | + | |
264 | 262 | | |
265 | 263 | | |
266 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
| 570 | + | |
576 | 571 | | |
577 | 572 | | |
578 | 573 | | |
| |||
1273 | 1268 | | |
1274 | 1269 | | |
1275 | 1270 | | |
1276 | | - | |
1277 | 1271 | | |
1278 | 1272 | | |
1279 | 1273 | | |
| |||
1314 | 1308 | | |
1315 | 1309 | | |
1316 | 1310 | | |
1317 | | - | |
| 1311 | + | |
1318 | 1312 | | |
1319 | 1313 | | |
1320 | 1314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
| 478 | + | |
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | 519 | | |
521 | 520 | | |
522 | 521 | | |
| |||
0 commit comments