gadget/gadget-code/frontend
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
..
src fix: properly constrain CodeMirror editor height in flex layout 2026-05-13 06:49:07 -04:00
index.html created by merging gadget-code and gadget-drone 2026-04-28 09:20:37 -04:00
package.json fixes 2026-05-13 06:38:29 -04:00
postcss.config.js created by merging gadget-code and gadget-drone 2026-04-28 09:20:37 -04:00
tailwind.config.js theme enforced and correctly implemented; e2e tests added for theme 2026-04-28 17:43:05 -04:00
tsconfig.json Define missing socket event types and enforce typed events in frontend build 2026-05-12 10:42:31 -04:00
vite.config.ts feat: replace react-ace with @uiw/react-codemirror 2026-05-12 22:41:31 -04:00