fix: adjusted textarea and playground paddings and design#11635
fix: adjusted textarea and playground paddings and design#11635lucaseduoli wants to merge 6 commits intorelease-v1.8.0from
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
WalkthroughThe changes modify chat input components and layout styling. A ResizeObserver was added to detect textarea width changes and trigger dynamic height adjustment. CSS classes were adjusted to refine text sizing, remove padding constraints, and restructure the textarea wrapper layout. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 3❌ Failed checks (1 error, 2 warnings)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (40.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## release-v1.8.0 #11635 +/- ##
==================================================
- Coverage 35.02% 35.01% -0.01%
==================================================
Files 1515 1515
Lines 72567 72582 +15
Branches 10934 10936 +2
==================================================
Hits 25418 25418
- Misses 45755 45770 +15
Partials 1394 1394
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This pull request introduces improvements to the chat input and sliding container components in the frontend, focusing on better UI responsiveness and layout consistency. The main changes include adding a resize observer for the chat input textarea, adjusting styling for text elements, and modifying container layouts to enhance usability.
Enhancements to chat input responsiveness:
src/frontend/src/components/core/playgroundComponent/chat-view/chat-input/components/text-area-wrapper.tsx: Added aResizeObserverto dynamically resize the textarea when its container width changes, improving the input experience.UI and layout adjustments:
src/frontend/src/components/ui/textarea.tsx: Changed the wrapper div for the textarea fromw-fulltoh-full w-fulland removed the!max-h-fitclass, ensuring the textarea expands properly within its container.src/frontend/src/components/core/playgroundComponent/chat-view/chat-input/components/no-input.tsx: Added thetext-smclass to the muted foreground paragraph for more consistent font sizing.src/frontend/src/components/core/playgroundComponent/sliding-container/components/flow-page-sliding-container.tsx: Removed padding from theStickToBottom.Contentcontainer to streamline the layout.Previous playground and prompt:
Playground and prompt after fixes: