Problem/Motivation
When reviewing the patch in https://www.drupal.org/project/drupal/issues/3291100 I've noticed that as soon as the spinner shows up when opening the field settings in the manage display tab within a content type a shift of the label and format column takes place for a second. See the video. It has to be noted that the issue takes place with and without the patch from #3291100: Nested details element within content type's "manage display" UI changes width when opened applied, but with the patch applied it is more apparent, since it is the only unexpected shift/movement.
Steps to reproduce
1. Go to admin/structure/types/manage/article/display
2. Click the configure cog for the image field
=> you will notice a brief shift of the label and format column because the "Please wait" spinner is shown.
Proposed Solution
Render "Please wait" below the gear icon to prevent shifting.
Remaining tasks
Review
Manual testing of MR
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | Manage display _ drupal11OS.gif | 420.7 KB | ahsannazir |
| #6 | 3291221-after-patch.mov | 4.14 MB | pradipmodh13 |
| #6 | 3291221-before-patch.mov | 5 MB | pradipmodh13 |
| #4 | Screen Recording 2023-05-09 at 2.24.26 PM.mov | 2.34 MB | gauravvvv |
| #4 | 3291221-4.patch | 1.32 KB | gauravvvv |
Issue fork drupal-3291221
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:
- 3291221-when-configuring-a
changes, plain diff MR !7860
Comments
Comment #2
rkollerComment #4
gauravvvv commentedI have provided a patch for same. Also I have added after patch screen recording file for the same. please review
Comment #5
pradipmodh13 commentedReviewing this ticket.
Comment #6
pradipmodh13 commented#4 patch applied successfully. It is working fine as expected.
For ref attached video with before and after.
We can move to RTBC.
Thanks !
Comment #7
smustgrave commentedConfirmed the "Please wait" appears below the gear icon. Will update IS with solution
Comment #10
gauravvvv commentedComment #12
smustgrave commentedRestoring previous status.
Comment #13
quietone commentedThe MR here was created on 1 May and then this was set to RTBC with no review of the MR. This should have a a review of the latest MR and manual testing of that. Setting back to NW.
Comment #14
ahsannazir commentedThe code changes seems fine and the spinner is rendering below gear icon. Attaching screen capture for reference.
Comment #15
gauravvvv commentedComment #16
smustgrave commented#6 and #7 there was a review.
MR was just the patch that's why I restored status FYI.
Comment #21
nod_Committed and pushed 35ca630848 to 11.x and 83ff161ced to 11.0.x and 0181bb23c1 to 10.4.x. Thanks!