gadget/gadget-code/frontend/src
Rob Colbert 5dac708117 fix: properly constrain CodeMirror editor height in flex layout
The editor was overflowing its container because @uiw/react-codemirror
renders a wrapper div that doesn't inherit flex constraints by default.

Fixed by adding CSS rules that:
1. Set overflow:hidden on .cm-editor-container
2. Target the wrapper div (> div) with flex:1, min-height:0, overflow:hidden
3. Set .cm-editor and .cm-scroller to overflow appropriately

This ensures the flex height constraint propagates through every level
of the CodeMirror DOM tree, and only .cm-scroller scrolls.

Layout chain:
  .cm-editor-container (flex-1, min-h-0)
    └─ wrapper div (flex:1, min-h-0, overflow:hidden)
      └─ .cm-editor (flex:1, min-h-0, overflow:hidden)
        └─ .cm-scroller (min-h-0, overflow:auto) ← only this scrolls
2026-05-13 06:49:07 -04:00
..
components feat: replace react-ace with @uiw/react-codemirror 2026-05-12 22:41:31 -04:00
lib Phase 2: ACE Editor integration and file operations 2026-05-12 19:32:58 -04:00
pages fix: ACE editor integration crash — React 19 compat, Vite ?url pattern, Error Boundary 2026-05-12 21:36:22 -04:00
types feat: replace react-ace with @uiw/react-codemirror 2026-05-12 22:41:31 -04:00
workers fix: resolve drone heartbeat timeouts and JWT expiration bugs 2026-05-11 17:46:09 -04:00
App.tsx Fix User Settings persona display issue 2026-05-12 01:15:00 -04:00
index.css fix: properly constrain CodeMirror editor height in flex layout 2026-05-13 06:49:07 -04:00
main.tsx return to Home on sign out 2026-05-01 20:15:34 -04:00