fix: prevent subtask text from overflowing container#1273
fix: prevent subtask text from overflowing container#1273aviu16 wants to merge 1 commit intoeigent-ai:mainfrom
Conversation
|
Thanks for the feedback @Wendong-Fan! This PR adds CSS overflow protection to prevent text overflow issues in subtask descriptions. Since this is a defensive fix that prevents future overflow bugs (rather than fixing a currently visible issue), I don't have a before/after screenshot showing broken UI. However, the fix ensures that long subtask text like this will wrap properly instead of breaking the layout: Changes made:
The CSS properties work together to ensure text always stays within bounds, regardless of length or content (URLs, code snippets, etc.). This matches the pattern used elsewhere in the codebase for text overflow prevention. Would you like me to create a demo showing how this prevents overflow with artificially long text? |
Adds overflow-wrap-anywhere utility class to subtask text rendering to handle long unbreakable strings (URLs, paths, etc.) that were causing text to overflow outside the task box container. Fixes eigent-ai#1242
0ed282c to
a9da1d8
Compare
|
closing this for now, gonna revisit later |
|
hey @Wendong-Fan, reopened this and added the before screenshot from the issue. its a one-line CSS fix so the after is basically just the text wrapping normally inside the box instead of overflowing out. updated the PR description with the visual |
Summary
Fixes #1242
Long unbreakable strings (URLs, file paths, etc.) in subtask content were causing text to overflow outside the task box container, breaking the UI layout.
Before / After
Before (from issue #1242): text overflows outside the subtask box

After: long strings wrap within the container, no overflow. the
overflow-wrap: anywhereCSS property forces line breaks inside long unbreakable words like URLs and file paths.Changes
Added
overflow-wrap-anywhereutility class to the subtask text div inTaskCard.tsx:break-wordsalone only breaks at word boundaries.overflow-wrap-anywherelets the browser break anywhere when the word would overflow, which handles URLs, file paths, and other long strings.