Repository navigation
Commit c9c2cf0
refactor(chat): drop the inert min-height calculation from the live composer
End-to-end measurement showed the min-height that updateHeight() wrote
never participated in layout on the CodeMirror path: the editor's height
tracks its content and is capped by max-height, while the host's
content-based flex minimum propagates growth to the wrapper. The computed
value stayed at the 60px base in every observed state, so remove the
calculation and pin the editor's min-height to the constant the variable
always fell back to. The legacy textarea path keeps its own resize
contract untouched.
Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>1 parent 5e40c1e commit c9c2cf0
2 files changed
Lines changed: 6 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 16 | + | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
| |||
273 | 269 | | |
274 | 270 | | |
275 | 271 | | |
276 | | - | |
277 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
278 | 275 | | |
279 | 276 | | |
280 | 277 | | |
281 | 278 | | |
282 | 279 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | 280 | | |
295 | | - | |
296 | | - | |
| 281 | + | |
297 | 282 | | |
298 | 283 | | |
299 | 284 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments