inlineChat: use stepped resize for input widget width#303476
Merged
Conversation
Resize the inline chat input widget width in discrete steps (minWidth -> midWidth -> maxWidth) using the golden ratio instead of continuously growing with content. This reduces visual jitter by snapping to only three predefined sizes.
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts the inline chat input overlay widget sizing behavior so width changes happen in discrete steps rather than continuously, aiming to reduce layout churn/jitter while typing.
Changes:
- Replace continuous width clamping with a 3-step width model (min/mid/max).
- Introduce a computed
midWidthbased onmaxWidthand a golden-ratio divisor.
hediet
approved these changes
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This changes the inline chat input widget width to resize in discrete steps rather than continuously growing with content.
Before: The widget grew pixel-by-pixel from
minWidth(220px) tomaxWidth(600px) as the user typed, causing constant relayout.After: The widget snaps between three sizes using the golden ratio:
minWidth= 220px (initial)midWidth= ~371px (600 / 1.618)maxWidth= 600px (with word wrap enabled)This reduces visual jitter by limiting the resize to at most two transitions instead of continuous growth.