Skip to content

Comments

fix(NcInputField): use overflow-wrap: anywhere instead of word-break: break-all for the helper text#8225

Open
Sector6759 wants to merge 1 commit intonextcloud-libraries:mainfrom
Sector6759:input-field-helper-text-wrapping
Open

fix(NcInputField): use overflow-wrap: anywhere instead of word-break: break-all for the helper text#8225
Sector6759 wants to merge 1 commit intonextcloud-libraries:mainfrom
Sector6759:input-field-helper-text-wrapping

Conversation

@Sector6759
Copy link

@Sector6759 Sector6759 commented Feb 18, 2026

PR #8128 introduced a new bug when it tried to fix another one. The PR added word-break: break-all; to the helper text, preventing long unbreakable URLs from overflowing the container, but this now leads to any word being broken into multiple lines, even if the word where the line break occurs would itself fit into the container. This new PR instead uses overflow-wrap: anywhere; which appears to be fine for any text. The only "downside", if you'd want to call it that, is that Firefox and Chrome insert the line break at different positions when encountering a long URL, as you can see in the second set of screenshots.

🖼️ Screenshots

"Normal" text

Browser Before After
Firefox firefox_before_1 firefox_after_1
Chrome chrome_before_1 chrome_after_1

Long unbreakable URL

Browser Before After
Firefox firefox_before_2 firefox_after_2
Chrome chrome_before_2 chrome_after_2

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 2️⃣ Backport to stable8 for maintained Vue 2 version or not applicable

…ak: break-all` for the helper text

Signed-off-by: Sector6759 <149817326+Sector6759@users.noreply.github.com>
@Sector6759 Sector6759 force-pushed the input-field-helper-text-wrapping branch from 4b357a2 to ed7c046 Compare February 18, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant