Commit 4e5b7de
committed
fix(codex): keep multirouter wizard within small windows
Root cause: the Codex MultiRouter wizard constrained only the middle grid to 82vh while the header and footer were outside that limit. On the default 1000x650 / minimum 900x600 Tauri window the sum of header + 82vh + footer could exceed the viewport, so the bottom actions were clipped even though the wizard state was correct.
Fix: make the overlay a bounded flex container, give the wizard shell max-h-full/min-h-0 flex-column layout, keep header and footer shrink-0, and let the middle body fill remaining height with independent scrolling for content and the step list.
Tests: add a layout regression assertion for the shell/body/footer constraints, run CodexMultiRouterWizard Vitest, typecheck, renderer build, and git diff whitespace check. Record the debugging note in root memory.md.1 parent 063aa16 commit 4e5b7de
3 files changed
Lines changed: 50 additions & 8 deletions
File tree
- src/components/codex
- tests/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1049 | 1055 | | |
1050 | 1056 | | |
1051 | 1057 | | |
| |||
1054 | 1060 | | |
1055 | 1061 | | |
1056 | 1062 | | |
1057 | | - | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
1058 | 1069 | | |
1059 | 1070 | | |
1060 | 1071 | | |
| |||
1070 | 1081 | | |
1071 | 1082 | | |
1072 | 1083 | | |
1073 | | - | |
1074 | | - | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1075 | 1089 | | |
1076 | 1090 | | |
1077 | 1091 | | |
| |||
1094 | 1108 | | |
1095 | 1109 | | |
1096 | 1110 | | |
1097 | | - | |
| 1111 | + | |
1098 | 1112 | | |
1099 | 1113 | | |
1100 | 1114 | | |
| |||
1529 | 1543 | | |
1530 | 1544 | | |
1531 | 1545 | | |
1532 | | - | |
| 1546 | + | |
1533 | 1547 | | |
1534 | 1548 | | |
1535 | 1549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
77 | 99 | | |
78 | 100 | | |
79 | 101 | | |
| |||
0 commit comments