Page MenuHomePhabricator

Intake forms: Long unbroken words do not wrap in "Describe your problem" field
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

Description:
On the Community Wishlist Intake form, the "Describe your problem" text field does not wrap very long words (e.g., a single long string with no spaces). When entering such a word in either RTL (Right-to-Left) or LTR (Left-to-Right) languages, the input box expands horizontally beyond its container instead of wrapping the text or containing overflow, which breaks the layout.

Steps to replicate the issue (include links if applicable):

  • Go to https://commtech.toolforge.org/Special:WishlistIntake
  • Scroll down to the “Describe your problem” section.
  • In the text box, enter a long unbroken string such as:
    • aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    • Until it exceeds the text box on your screen
    • Also try this on an RTL (e.g. Hebrew)
  • Observe how the input field behaves as you continue typing.

What happens?:

The text box expands horizontally beyond its boundary. Videos below

What should have happened instead?:

  • The input should wrap the word gracefully within the box OR display a scroll indicator, without expanding outside the visible area.
  • The layout should remain intact across all language directions (LTR and RTL).

Other information (browser name/version, screenshots, etc.):

LTRRTLMobile

Event Timeline

HMonroy changed the task status from Open to In Progress.Jul 30 2025, 11:53 PM

Dayllan: we should just add a max-width to the wrapper, either as a fixed width or responsive %

MusikAnimal renamed this task from Wishlist form: Long unbroken words do not wrap in "Describe your problem" field to Intake forms: Long unbroken words do not wrap in "Describe your problem" field.Aug 27 2025, 6:40 AM
HMonroy subscribed.
MusikAnimal changed the task status from In Progress to Open.Sep 13 2025, 9:45 PM

Looks like it is an issue for the Translate error message too, but perhaps that's intentional:

image.png (433×1 px, 77 KB)

It also happens in normal VE, where it's also presumably fine:

image.png (442×1 px, 48 KB)

So maybe we can do something like:

.ext-communityrequests-intake__ve-surface .ve-ce-contentBranchNode {
    white-space: normal;
    hyphens: auto;
}

Change #1192862 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/CommunityRequests@master] Wrap text in the VE description field

https://gerrit.wikimedia.org/r/1192862

Change #1192862 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Wrap text in the VE description field

https://gerrit.wikimedia.org/r/1192862

MusikAnimal changed the task status from Open to In Progress.Oct 14 2025, 5:56 AM
MusikAnimal changed the task status from In Progress to Open.Oct 14 2025, 6:57 AM
dom_walden subscribed.

Text was wrapped as appropriate when raising a wish in English and Hebrew interface languages on beta.