fix: prevent layout shift when pasting long unbroken strings in composer input - #13044
Open
rekha0suthar wants to merge 1 commit into
Open
fix: prevent layout shift when pasting long unbroken strings in composer input#13044rekha0suthar wants to merge 1 commit into
rekha0suthar wants to merge 1 commit into
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
Author
|
recheck |
rekha0suthar
force-pushed
the
fix/input-overflow-long-strings
branch
from
July 28, 2026 07:13
58a5156 to
361d5d1
Compare
Author
|
recheck |
Pasting a long unbroken string (e.g. base64 tokens, minified code) into the composer input caused the TipTap editor to overflow its flex container, which pushed the send button out of alignment and broke the input layout. Two changes: - Added overflow-wrap: break-word and word-break: break-word to the .tiptap CSS rule so long tokens wrap instead of overflowing. - Added min-w-0 to the flex container in ContinueInputBox so that the flex child can shrink below its natural content width, which is required for overflow-wrap to take effect inside a flex layout. Fixes continuedev#13016
rekha0suthar
force-pushed
the
fix/input-overflow-long-strings
branch
from
July 28, 2026 07:26
361d5d1 to
4091c6d
Compare
Author
|
I have read the CLA Document and I hereby sign the CLA |
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.
Problem
Pasting a long unbroken string (e.g. a base64 token, a minified JS bundle, a long URL with no spaces) into the composer input box caused the TipTap editor content to overflow its flex container. This pushed the send button out of view and broke the overall input layout.
Root Cause
Two missing CSS properties:
No
overflow-wrap/word-breakon.tiptap— without these, the browser treats the unbroken string as a single unbreakable word and renders it at full width, overflowing the container.No
min-width: 0on the flex container — flex items default tomin-width: auto, which means they will never shrink below their content width. This preventsoverflow-wrapfrom working inside a flex layout.Fix
TipTapEditor.css— add a.tiptaprule:ContinueInputBox.tsx— addmin-w-0to the outer flex container:Testing
Fixes #13016
🤖 Generated with Claude Code