Fix: private chat input placeholder alignment - #25424
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe private chat textarea no longer receives a content-state prop. Its styling now uses normal wrapping and automatic overflow when populated, while placeholder visibility enables single-line presentation. A Playwright test records textarea metrics while resizing the sidebar, typing, clearing, and verifying height restoration, with failure-only artifact retention configured. Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-form/styles.ts`:
- Around line 55-64: Update the populated-state whitespace styling in the chat
message form textarea styles to use `white-space: pre-wrap` instead of `normal`,
preserving consecutive spaces and line breaks; keep the `&:placeholder-shown`
`nowrap` override unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: f2c2163f-7347-4628-999a-0c9b67fb6093
📒 Files selected for processing (3)
bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-form/component.tsxbigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-form/styles.tsbigbluebutton-tests/playwright/chat/privateChatInput.spec.ts
💤 Files with no reviewable changes (1)
- bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-message-form/component.tsx
|
✅ Automated tests have passed! |
Tainan404
left a comment
There was a problem hiding this comment.
Reviewed and tested the code



What does this PR do?
Fixes the private chat input jumping after text is cleared when a long placeholder is clipped in a narrow sidebar.
It also adds a regression test covering sidebar resizing and repeated type/clear transitions.
before
before.mp4
after
after.mp4
How to test