Skip to content

Conversation

aibrahim-oai
Copy link
Collaborator

@aibrahim-oai aibrahim-oai commented Sep 11, 2025

image

@aibrahim-oai aibrahim-oai marked this pull request as draft September 11, 2025 21:52
@aibrahim-oai aibrahim-oai marked this pull request as ready for review September 14, 2025 13:26
@@ -136,7 +136,8 @@ impl ChatComposer {
}

pub fn desired_height(&self, width: u16) -> u16 {
self.textarea.desired_height(width - 1)
// Leave 1 column for the left border and 1 column for left padding
self.textarea.desired_height(width.saturating_sub(2))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we pull this 2 out to a semantic constant since it seems to be all over the place now?

@aibrahim-oai aibrahim-oai enabled auto-merge (squash) September 14, 2025 20:46
@aibrahim-oai aibrahim-oai merged commit 7e1543f into main Sep 14, 2025
46 of 51 checks passed
@aibrahim-oai aibrahim-oai deleted the codex/align-tui-item-spacing-and-add-tests branch September 14, 2025 20:51
@github-actions github-actions bot locked and limited conversation to collaborators Sep 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants