Problem/Motivation
When entering a name for the new view model if you enter a specific number of characters the machine name will jump into the following row, based on the situation it can be confusing for the users because sometimes only the closing bracket can go into the second row.
Steps to reproduce
- Go to Structure > Display Modes > View Modes
- Click Add View mode and the modal will open
- Under content click on Add view mode for Content
- Start typing the name for the view mode
- Type this
This is long bre - See how only the closing bracket is in the new row
- If you continue with typing you will see how the actual machine name will go into the next row but the label
Machine name:will stay up.
Proposed resolution
Adding a white-space: nowrap; on the form-item__suffix will make sure that the whole suffix is going to the next row when the length is too big.
Attached are the two screenshots with the issue.
As a user I don't want to be confused with parts of the machine name going into the second row.
Remaining tasks
Screenshots
Review
User interface changes
Attached before and after photos where you can see how the closing bracket wraps in the new row.
Before

After

API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | Screenshot 2024-01-25 at 4.17.03 PM (1).png | 225.39 KB | dishakatariya |
| #16 | Screenshot 2024-01-25 at 4.18.47 PM (1).png | 234.81 KB | dishakatariya |
| #15 | Longtext_afterpatch.png | 88.4 KB | dishakatariya |
| #15 | Shorttext_afterpatch.png | 83.99 KB | dishakatariya |
| #15 | Longtext_beforepatch.png | 94.59 KB | dishakatariya |
Issue fork drupal-3413736
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3413736-form-suffix-element
changes, plain diff MR !6103
Comments
Comment #3
alex.87 commentedComment #4
alex.87 commentedComment #5
alex.87 commentedComment #6
kanchan bhogade commentedHi,
I verified and tested the MR 6103 on the Drupal 11. x version.
Patch applied successfully
Testing steps:
Test Result:
The machine name is displayed in suffixes and not broken into multiple lines
Attaching screenshots for reference
Not changing status for more Reviews
Comment #7
smustgrave commentedThere's no issue summary, should follow standard template.
Comment #8
alex.87 commentedNot sure how it got lost, but I took it back from the revision.
Comment #9
alex.87 commentedComment #10
smustgrave commentedThanks appears it was completely removed in #6, not sure.
But updated it with the missing section, even if they don't apply it's good practice
For UI changes it's helpful to include before/after screenshots in the summary. Tagging for that.
Comment #11
larowlanComment #12
alex.87 commentedComment #13
smustgrave commentedComment #14
dishakatariya commentedComment #15
dishakatariya commentedHi,
I verified and tested the MR 6103 on the Drupal 11. x version.
Patch applied successfully
Followed the below Testing steps:
Install the Drupal version 11. x
Test Result:
The machine name is displayed in suffixes and not broken into multiple lines
According to me this issue is no more exist. Verified this on the multiple resolutions (responsive)and browser(Chrome,firefox,safari) as well.
Attaching the screenshots for referrence below.
Can be move to RTBC
Thanks!
Comment #16
dishakatariya commentedAdding some more screenshots for before patch of Safari browser for reference.This is fixed now.
Comment #17
quietone commentedI'm triaging RTBC issues. I read the IS and the comments. I didn't find any unanswered questions.
Leaving at RTBC;
Comment #18
alex.87 commentedComment #22
nod_Committed e819dc6 and pushed to 11.x. Thanks!