fix(lexical): collapse nested block paragraphs in single-line editors#4067
Conversation
Snippet insertion replaces an inline await placeholder with block paragraph nodes nested inside the single root paragraph, which the single-line plugin's root-child check missed — so a snippet's trailing newline rendered as an extra row in the search bar. Unwrap nested block paragraphs onto the one line.
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe single-line Lexical plugin gains a 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
contain:inline-size keeps the search field's width independent of its text, so a long paste/snippet truncates within the bar instead of growing the header and pushing the title and nav controls off-screen.
Two search-bar fixes: snippet insertion nested block paragraphs inside the single root paragraph (including a trailing-newline empty paragraph that rendered as an extra row), which the single-line plugin's root-child check missed — the plugin now unwraps nested block paragraphs onto the one line. Separately, a long pasted/inserted value grew the search field and pushed the title and nav controls off-screen; contain:inline-size keeps the field's width independent of its text so it truncates within the bar instead.
🤖 Generated with Claude Code