I'm not sure if this should be an issue for core Claro or contrib Paragraphs, but it only seems to manifest with Claro, so starting here.
A fresh install of Drupal 8.9.0-rc1, paragraphs 1.12 with Claro theme enabled as an admin theme.
Added a paragraph type with a text field to an article.
When creating an article, and reducing width of the browser, the title field overflows under the options tabs to the right.
See attached screenshot.
I've looked for duplicates and tried patches from related issues, but I can't see anything that describes this behaviour exactly.
I've added possibly realted issues.
PHP 7.2, Ubuntu 20.04 , Firefox / Chrome


| Comment | File | Size | Author |
|---|---|---|---|
| #46 | interdiff_45_46.txt | 536 bytes | shweta__sharma |
| #46 | 3145188_46.patch | 1.07 KB | shweta__sharma |
| #45 | 3145188-45.patch | 556 bytes | aporie |
| #45 | ckeditor4_like_toolbar.png | 19.27 KB | aporie |
| #45 | ckeditor_toolbar.png | 18.81 KB | aporie |
Comments
Comment #2
finn lewisComment #3
kiran.kadam911Comment #4
kiran.kadam911Kindly review the attached patch.
Stack element is the best way to handle that issue on resizing(desktop to mobile) because on iPad(768 res) it's stack and iPad pro(1024 res) it's two-column. So it's better to handle it like an iPad stack design below 992 resolution.
Comment #5
priyanka.sahni commentedComment #6
priyanka.sahni commentedVerified and tested by applying the patch #4 on fresh install of Drupal 8.9.0-rc1, paragraphs 1.12 with Claro theme enabled as an admin theme.It was successfully applied.
But found issues related to UI.Adding the screenshots below.
System -
MacBook Pro.
Browser -
Chrome and Safari
Steps to test -
1. Go to the admin site.
2. Go to admin/modules.
3. Enable the paragraph.
4. Go to /admin/appearance.
5. Enable the Claro theme.
6. Go to /admin/structure/types/manage/article/fields/node.article.field_example_paragraph.
7. Added a paragraph type with a text field to an article and save it.
8. Go to node/add/article.
9. Verify.
Added a paragraph type with a text field-
Found below UI issues -
On Adding a paragraph type with a text and image field-
On Adding a paragraph type with a nested paragraph -
Comment #7
kiran.kadam911@priyanka.sahni Thanks for your testing but this issue is related to paragraph section overlapping on the right sidebar when we are resizing from desktop to mobile and using a patch that will get resolved. About new issues which you found I think for that you need to create a separate issue. Also, re-check newly found issues are in latest claro theme(by downloading it) or not. https://www.drupal.org/project/claro
Comment #8
priyanka.sahni commentedComment #9
priyanka.sahni commented@kiran.kadam911 - Please find the attached screenshot for mobile view after applying the patch #4.
Comment #10
kiran.kadam911@priyanka.sahni Thanks again for testing but can you please test it When creating an article, and reducing the width of the browser(resize manually > 768 and < 992 resolutions) and see if it's working fine.
Comment #11
finn lewisHey @kiran.kadam911
The patch in #4 applies but does not solve the problem for me:
Interestingly, I have also noticed the same behaviour with paragraph fields on the Seven theme when adding them to vertical tabs.
I'll try to generate a screenshot of that too in case it helps.
Comment #12
finn lewisComment #13
finn lewisHere is the similar behaviour in Seven, so it looks like this is not Claro specific, but perhaps paragraphs specific?
Comment #14
kiran.kadam911Hello @finn.lewis@gmail.com
About Claro:
I recheck the patch by applying again in drupal 8.9.x where claro is admin theme from core, Above 992 res showing two column and below 992 res it's stack and no overlapping of sections are happening, works fine on manual resizing also. Also pls check the size attribute value of input field on your local.
See the attached screenshot.
About Seven:
Inside tabs paragraph section comes with table. Issue https://www.drupal.org/project/drupal/issues/2937996 provided patch will resolve this issue generically for table form elements.
Thanks!
Comment #15
kiran.kadam911Comment #16
pankaj.singh commentedComment #17
pankaj.singh commentedTested the issue on desktop, responsive (768x992), and mobile view but the issue is only reproducible on mobile view on Seven theme only.
Applied the patch given in #4 and the pacth fixed the issue. Please refer to the SS attached.
Comment #18
vikashsoni commentedApplied patch #4 successfully working for me
Thanks for the patch for reference sharing screenshot
Comment #19
bnjmnmChanging the media query of a very commonly used form to address a issue with the paragraphs widget is not something that will get accepted to core. This is a significant change to the node form experience. The solution needs to target the specific bug, not make broad changes to Drupal form styling.
In Drupal 9.x, core themes also no longer extend Stable, and 8.x no longer receives updates, so whatever the ultimate fix, it won't be in the stable theme anymore.
Comment #21
andypostanother related issue is #3112245: Cross for multiple entity reference field in paragraph
probably it needs fix for paragraphs as well
Comment #22
maninders commentedHi,
Created a patch using media query for Paragraphs fields cause overflow of content forms in claro theme.
Comment #23
bnjmnmCSS changes are made in .pcss.css files then transpiled to .css files. See https://www.drupal.org/docs/core-modules-and-themes/core-themes/claro-th... When this process isn't followed, DrupalCI will respond with "custom commands failed."
This phrasing suggests the styling is Ipad specific, but it's not targeting ipads, just a width range.
Having a media query target only 139px seems really specific and is not a range used elsewhere. If this specific query is 100% necessary it should probably be accompanied by an explanation.
.field--widget-paragraphs is a Class provided by the Paragraphs module. CSS changes to Drupal core should only include classes that are provided by Drupal core.
Comment #24
maninders commentedAccording to comment #23, added specific css to paragraph module and create a patch. And also added 1 breakpoint, not specific to iPad, only added for the broken window.
Comment #26
maninders commentedComment #27
maninders commentedComment #28
erikbrgn commented@Maninders, shouldn't that patch be for the paragraphs module and not core?
Comment #30
gaurav-mathur commentedComment #31
gaurav-mathur commentedI am tested in drupal 9.5.x-dev, Its working fine without apply the patch with Claro theme enabled as an admin theme.Appears as expected.
(Added a paragraph type with a email field)
See Refer screenshot.
Comment #32
sker101 commentedThis is still an issue for me on latest release (9.5.1) and the fields look fine with theme "seven".
Claro

Seven

Comment #33
gauravvvv commentedI have updated the patch into Claro theme and addressed comment #23. Please review
Comment #34
Shubham Sharma 77 commentedVerified and tested by applying patch #33. It doesn't look good. This is happening when the admin menu is open.
For ref sharing screenshots...
Comment #35
Shubham Sharma 77 commentedI have added a patch please review it.
For ref sharing screenshots...
Comment #36
varun verma commentedI have applied #35 patch, it's overflow on mobile device when used Field type Text (formatted, long).
Attached screenshot for reference.
Comment #37
Shubham Sharma 77 commentedI have updated the patch and addressed comment #36. Please review it.
For ref sharing screenshots...
Comment #38
bnjmnmI mentioned this in #22 but the patches that follow continue to use
.field--widget-paragraphsin the CSS. Claro (or anywhere in Drupal core) does not provide styling for selectors added by a contrib module. That solution can either be added to paragraphs instead of core, or create a module agnostic solution for ClaroComment #39
rkelbel48 commentedSince this is also indeed a problem on Seven, can this fix be moved to the Paragraphs team to address, as a fix there should address it for all admin themes?
The Seven issue has been postponed due to Seven being moved to Contrib in D10, but that doesn't help those of us using it on D9 right now. We have content editor experience that does not want to move to Claro either, so it really seems like this should be addressed at the Paragraph level to fix it for everyone. No?
Comment #41
redneko commentedHi, I am experiencing this issue too. The paragraph fields are overflowing on the right and overlap the menu.

I tried out the patches but they didn't work stop this overlap. They do prevent adding a paragraph containing CKEditor 5 from causing all paragraph sections to become super wide, though. I am am using Drupal 9.
If it was decided to move this issue over to paragraphs, did anyone ever raise an issue on their board? I can't find anything.
Comment #42
sker101 commented@RedNeko
This might be a different issue, not related to Paragraphs module, see
https://www.drupal.org/project/drupal/issues/3332416
Comment #43
redneko commented@sker101
Thank you for you suggestion, but the issue in my screenshot is not due to CKEditor. That version of the issue looks much worse!
Comment #44
podarok#8 added to YMCA Website Services distribution ( formerly Open Y ) as it solves the issue
treat this as RTBC if needed
Comment #45
aporieAgree with #38.
I think the "issue" comes from ckeditor itself.
The thing is, the toolbar is supposed to be wrapped under a menu when there is not enough room. For this reason, they might have forced

flex-wrap: no-wrapon the toolbar.With the following patch, you restore the behavior as it used to be with ckeditor 4:

I think this could be an option to add to claro theme.
Comment #46
shweta__sharma commentedFixed the CCF in #45
Comment #47
aporieYep, thanks shweta, figured it out when rebuilding my project. Bug was still there ...
Comment #48
saschaeggiThis issue doesn't seem to be directly related to Claro itself as it seems to happen as well in other admin themes of the like of Seven & Gin as I'm closing this.
Regarding Paragraphs there seem to be a couple of related issues open, see:
(there might be more)
Regarding CKEditorthere is already an issue here: #3332416: CKEditor 5 toolbar items of multi-value field (typically Paragraphs) overflowing on narrow viewports and overlapping with node form's sidebar on wide viewports
Comment #49
eddylbsThanks @shweta__sharma !
#46 works for me on 10.5.7 with Claro, CKEditor 5, Field Group 8.x-3.6 (for tabs), and Paragraphs 8.x-1.19