Skip to content

Comments

fix: terminal pane layout - ensure proper height propagation#24

Merged
randlee merged 1 commit intodevelopfrom
feature/fix-terminal-prompt-env-vars
Jan 30, 2026
Merged

fix: terminal pane layout - ensure proper height propagation#24
randlee merged 1 commit intodevelopfrom
feature/fix-terminal-prompt-env-vars

Conversation

@randlee
Copy link
Owner

@randlee randlee commented Jan 30, 2026

Summary

  • Fixed terminal pane rendering with 0 height due to missing height constraints in flex layout chain
  • Terminal now displays shell prompt correctly

Root Cause

The terminal pane container used flex_1() with overflow_hidden() which caused the height to collapse to 0. The flex layout wasn't propagating height properly through the container hierarchy.

Changes

  • render_content(): Changed w_full() to size_full() to provide explicit height
  • All pane wrappers: Added h_full() to stretch vertically in the flex row container
  • Terminal pane container: Changed from flex_1() to size_full() and removed overflow_hidden() from outer container
  • Added proper wrapper around terminal_pane with flex_1()/min_h_0()/overflow_hidden() to correctly contain terminal content

Test plan

  • Build passes
  • Clippy passes
  • Terminal displays shell prompt on launch
  • Terminal dimensions are correct (88x34 with 680.5px height)

🤖 Generated with Claude Code

The terminal pane was rendering with 0 height because of missing height
constraints in the flex layout chain.

Changes:
- render_content: use size_full() instead of w_full() to provide height
- All pane wrappers: add h_full() to stretch vertically in flex row
- Terminal pane container: use size_full() instead of flex_1()
- Remove overflow_hidden() from outer container (was collapsing height)
- Add proper wrapper around terminal_pane with flex_1/min_h_0/overflow_hidden

The issue was that using flex_1() with overflow_hidden() on the terminal
pane container caused height to collapse to 0. Using size_full() and
moving overflow_hidden() to an inner wrapper resolves this.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@randlee randlee merged commit f97cb48 into develop Jan 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant