Skip to content

Dynamic composer height on window resize#300

Merged
andrinoff merged 1 commit intofloatpane:masterfrom
utafrali:feature/issue-293-feat-dynamic-composer-height
Mar 14, 2026
Merged

Dynamic composer height on window resize#300
andrinoff merged 1 commit intofloatpane:masterfrom
utafrali:feature/issue-293-feat-dynamic-composer-height

Conversation

@utafrali
Copy link
Contributor

What?

Added dynamic height calculations for the composer's text areas. When the window gets resized, the available space is split between the body and signature inputs based on percentages, with minimum heights to keep things usable.

Why?

Fixes #293

The composer was using fixed heights which didn't adapt to terminal size. Wasted a lot of vertical space on big screens and cramped things on small ones. This makes better use of what's available. Tests added to verify the height distribution and minimum constraints work.

@utafrali utafrali requested a review from andrinoff as a code owner March 14, 2026 13:48
@github-actions github-actions bot added the bug Something isn't working label Mar 14, 2026
@andrinoff andrinoff added enhancement New feature or request and removed bug Something isn't working labels Mar 14, 2026
Co-authored-by: drew <me@andrinoff.com>
Signed-off-by: drew <me@andrinoff.com>
@andrinoff andrinoff force-pushed the feature/issue-293-feat-dynamic-composer-height branch from 5792704 to ac56c97 Compare March 14, 2026 13:55
Copy link
Member

@andrinoff andrinoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! @utafrali

Will be introduced in v0.25.0

@andrinoff andrinoff merged commit a088225 into floatpane:master Mar 14, 2026
1 of 2 checks passed
andrinoff added a commit that referenced this pull request Mar 14, 2026
Co-authored-by: drew <me@andrinoff.com>
Signed-off-by: drew <me@andrinoff.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FEAT: Dynamic composer height

2 participants