Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300903

Word wrapping is broken for (very) long text, and horizontal scrollbar appear

$
0
0

Problem/Motivation

When an International Phone field is added to a content, and the full list of country codes are displayed in the "Form display" configuration form, that list is displayed on the same line (no wrapping).

That list should be wrapped when reaching the table right side. The consequence is that a horizontal scrollbar appears, and the configuration Edit button is pushed waaaay to the right.

A simple fix is to add this CSS:

.field-plugin-summary {
  overflow-wrap: break-word;
}

Steps to reproduce

  1. Install and activate the International Phone module;
  2. Add an "International phone" field to a content;
  3. Go to the "Form display" tab and select some country and exclude others;

Excluded countries configuration

You should see a (very) long list of excluded countries displayed in the same line, making a horizontal scrollbar appear.

Excluded countries list in one line

Proposed resolution

Make the list wrap by adding the CSS: overflow-wrap: break-word;.

Excluded countries list wrapping

Remaining tasks

No remaining tasks. Only CSS fix is needed.

User interface changes

No UI changes.

API changes

NO API changes.

Data model changes

No Data model changes.

Release notes snippet

Fix the overflow wrapping of long text in the Field


Viewing all articles
Browse latest Browse all 300903

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>