gadget/gadget-code/frontend
Rob Colbert ec7b83d610 Fix: Proper flexbox scrolling for FILES panel sidebar
Root Cause: CSS flex items default to min-height: auto, which prevents
flex-1 elements from shrinking below their content size. This caused
the FilesPanel to grow beyond its allocated space when the file tree
had many entries, pushing content off-screen.

Changes:
- FilesPanel.tsx: Added min-h-0 to root div to override min-height: auto
  This allows flex-1 to actually constrain height and enable scrolling
- FileTree.tsx: Removed redundant overflow-auto and h-full from root div
  The parent (FilesPanel flex-1 overflow-auto) already handles scrolling.
  Nested scroll containers create height resolution issues.

The sidebar layout is now a clean single-scroll-container hierarchy:
  Sidebar (flex flex-col, no overflow)
  ↳ SESSION (shrink-0, natural height)
  ↳ PROJECT (shrink-0, natural height)
  ↳ FilesPanel (flex-1 min-h-0) — constrained to available space
    ↳ Header (natural height)
    ↳ Scroll area (flex-1 overflow-auto) — THE scroll container
      ↳ FileTree (p-2 only) — no overflow, no h-full
    ↳ Footer (natural height)
2026-05-12 17:40:11 -04:00
..
src Fix: Proper flexbox scrolling for FILES panel sidebar 2026-05-12 17:40:11 -04:00
index.html created by merging gadget-code and gadget-drone 2026-04-28 09:20:37 -04:00
package.json Define missing socket event types and enforce typed events in frontend build 2026-05-12 10:42:31 -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 fix: resolve build errors in session-stability branch 2026-05-11 17:46:09 -04:00