mirror of
https://github.com/cline/cline.git
synced 2026-10-28 02:58:44 +08:00
* fix: add Read More for long task in header - Truncate task description to first 3 lines by default and add a Read More/Show Less toggle to expand/collapse the full text - Compute highlighted text based on expansion state; introduce local isHighlightedTextExpanded state - Increase task details container max height (max-h-20 -> max-h-80) for better readability when expanded - Remove unused useAutoCondense from context destructuring Improves UX by preventing long task text from overwhelming the UI while giving users control to view more when needed. Also includes minor cleanup. * update * Set to 25vh instead * highlightText * feat(ui): task text expansion with click-outside collapse - Replace "Read More/Show Less" button with click-to-expand interaction - Add click-outside listener to automatically collapse expanded text - Apply gradient mask to truncated text for better visual indication - Optimize rendering by removing conditional text highlighting - Refactor layout to use single container with dynamic height constraints This improves UX by making text expansion more intuitive and reducing visual clutter from the toggle button. * update changeset --------- Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>