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

screenshot of paragraphs fields cause overflow of content forms in Claro

CommentFileSizeAuthor
#46 interdiff_45_46.txt536 bytesshweta__sharma
#46 3145188_46.patch1.07 KBshweta__sharma
#45 3145188-45.patch556 bytesaporie
#45 ckeditor4_like_toolbar.png19.27 KBaporie
#45 ckeditor_toolbar.png18.81 KBaporie
#41 Screenshot 2023-07-19 at 11.41.48.png33.42 KBredneko
#37 After-patch.png62.85 KBShubham Sharma 77
#37 interdiff_35-37.txt982 bytesShubham Sharma 77
#37 3145188-37.patch1.26 KBShubham Sharma 77
#36 Screenshot-3145188-35-patch.png226.14 KBvarun verma
#35 After-patch.png105.75 KBShubham Sharma 77
#35 3145188-35.patch1.1 KBShubham Sharma 77
#34 Screenshot.png98.16 KBShubham Sharma 77
#33 3145188-33.patch1.16 KBgauravvvv
#32 iShot_2023-01-09_17.46.07.png92.97 KBsker101
#32 iShot_2023-01-09_17.45.59.png125.69 KBsker101
#31 Screenshot.png108.41 KBgaurav-mathur
#24 paragraphs-fields-cause-overflow-in-claro-theme-3145188-24.patch1.45 KBmaninders
#22 paragraphs-fields-cause-overflow-in-claro-theme-3145188-22.patch559 bytesmaninders
#18 after_patch.png282.15 KBvikashsoni
#18 before_patch.png473.47 KBvikashsoni
#17 responsiveView.JPG41.11 KBpankaj.singh
#17 desktopView.JPG53.54 KBpankaj.singh
#17 onSeven_mobileView_afterPatch.JPG28.44 KBpankaj.singh
#17 onSeven_mobileView2_beforePatch.JPG28.93 KBpankaj.singh
#17 onSeven_mobileView1_beforePatch.JPG31.3 KBpankaj.singh
#14 Screenshot 2020-06-09 at 3.55.08 PM.png282.15 KBkiran.kadam911
#14 Screenshot 2020-06-09 at 3.54.38 PM.png473.47 KBkiran.kadam911
#13 Screenshot_2020-06-09 Create Article Drush Site-Install(1).png56.1 KBfinn lewis
#11 Screenshot_2020-06-09 Create Article Drush Site-Install.png52.92 KBfinn lewis
#9 After_Patch.png312.27 KBpriyanka.sahni
#6 Nested Paragraph.png80 KBpriyanka.sahni
#6 Image and Text .png96.36 KBpriyanka.sahni
#6 Text.png79.99 KBpriyanka.sahni
#6 SS of Text .png171.42 KBpriyanka.sahni
#6 SS of Nested Paragraph.png116.58 KBpriyanka.sahni
#6 SS of Image and Text .png204.29 KBpriyanka.sahni
#4 content-form-overflow-3145188-4.patch480 byteskiran.kadam911
Screenshot_2020-06-03 Create Article Drush Site-Install.png51.21 KBfinn lewis

Comments

finn.lewis@gmail.com created an issue. See original summary.

finn lewis’s picture

Issue summary: View changes
kiran.kadam911’s picture

Assigned: Unassigned » kiran.kadam911
Status: Active » Needs work
kiran.kadam911’s picture

Assigned: kiran.kadam911 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new480 bytes

Kindly 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.

priyanka.sahni’s picture

Assigned: Unassigned » priyanka.sahni
priyanka.sahni’s picture

StatusFileSize
new204.29 KB
new116.58 KB
new171.42 KB
new79.99 KB
new96.36 KB
new80 KB

Verified 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-

After Patch

After Patch

Found below UI issues -

On Adding a paragraph type with a text and image field-

SS

SS-1

On Adding a paragraph type with a nested paragraph -

SS

SS-2

kiran.kadam911’s picture

@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

priyanka.sahni’s picture

Assigned: priyanka.sahni » Unassigned
priyanka.sahni’s picture

StatusFileSize
new312.27 KB

@kiran.kadam911 - Please find the attached screenshot for mobile view after applying the patch #4.

After Patch

kiran.kadam911’s picture

@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.

finn lewis’s picture

Hey @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.

finn lewis’s picture

Status: Needs review » Needs work
finn lewis’s picture

Here is the similar behaviour in Seven, so it looks like this is not Claro specific, but perhaps paragraphs specific?

kiran.kadam911’s picture

Hello @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!

kiran.kadam911’s picture

Status: Needs work » Needs review
pankaj.singh’s picture

Assigned: Unassigned » pankaj.singh
pankaj.singh’s picture

Assigned: pankaj.singh » Unassigned
StatusFileSize
new31.3 KB
new28.93 KB
new28.44 KB
new53.54 KB
new41.11 KB

Tested 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.

vikashsoni’s picture

StatusFileSize
new473.47 KB
new282.15 KB

Applied patch #4 successfully working for me
Thanks for the patch for reference sharing screenshot

bnjmnm’s picture

Version: 8.9.x-dev » 9.3.x-dev
Status: Needs review » Needs work
+++ b/core/themes/stable/css/node/node.module.css
@@ -14,8 +14,7 @@
 /* Wide screens */
 @media
-  screen and (min-width: 780px),
-  (orientation: landscape) and (min-device-height: 780px) {
+  screen and (min-width: 992px) {
 
   .layout-region-node-main,
   .layout-region-node-footer {
 

Changing 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.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

andypost’s picture

another related issue is #3112245: Cross for multiple entity reference field in paragraph

probably it needs fix for paragraphs as well

maninders’s picture

Status: Needs work » Needs review
StatusFileSize
new559 bytes

Hi,

Created a patch using media query for Paragraphs fields cause overflow of content forms in claro theme.

bnjmnm’s picture

Component: Classy theme » Claro theme
Status: Needs review » Needs work
  1. --- a/core/themes/claro/css/components/form--text.css
    +++ b/core/themes/claro/css/components/form--text.css
    

    CSS 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."

  2. +++ b/core/themes/claro/css/components/form--text.css
    @@ -169,3 +169,10 @@ _:-ms-fullscreen,
    +/* Ipad screens */
    

    This phrasing suggests the styling is Ipad specific, but it's not targeting ipads, just a width range.

  3. +++ b/core/themes/claro/css/components/form--text.css
    @@ -169,3 +169,10 @@ _:-ms-fullscreen,
    +@media screen and (min-width: 960px) and (max-width: 1099px) {
    

    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.

  4. +++ b/core/themes/claro/css/components/form--text.css
    @@ -169,3 +169,10 @@ _:-ms-fullscreen,
    +  .field--widget-paragraphs input.form-element {
    

    .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.

maninders’s picture

According 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.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

maninders’s picture

Version: 9.5.x-dev » 9.4.x-dev
Status: Needs work » Needs review
maninders’s picture

Version: 9.4.x-dev » 9.5.x-dev
erikbrgn’s picture

@Maninders, shouldn't that patch be for the paragraphs module and not core?

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

gaurav-mathur’s picture

Assigned: Unassigned » gaurav-mathur
gaurav-mathur’s picture

Assigned: gaurav-mathur » Unassigned
StatusFileSize
new108.41 KB

I 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.

sker101’s picture

StatusFileSize
new125.69 KB
new92.97 KB

This is still an issue for me on latest release (9.5.1) and the fields look fine with theme "seven".

Claro
claro theme

Seven
seven theme

gauravvvv’s picture

StatusFileSize
new1.16 KB

I have updated the patch into Claro theme and addressed comment #23. Please review

Shubham Sharma 77’s picture

Assigned: Unassigned » Shubham Sharma 77
Status: Needs review » Needs work
StatusFileSize
new98.16 KB

Verified and tested by applying patch #33. It doesn't look good. This is happening when the admin menu is open.
For ref sharing screenshots...

Shubham Sharma 77’s picture

Assigned: Shubham Sharma 77 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.1 KB
new105.75 KB

I have added a patch please review it.
For ref sharing screenshots...

varun verma’s picture

Status: Needs review » Needs work
StatusFileSize
new226.14 KB

I have applied #35 patch, it's overflow on mobile device when used Field type Text (formatted, long).
Attached screenshot for reference.

Shubham Sharma 77’s picture

Status: Needs work » Needs review
StatusFileSize
new1.26 KB
new982 bytes
new62.85 KB

I have updated the patch and addressed comment #36. Please review it.
For ref sharing screenshots...

bnjmnm’s picture

Status: Needs review » Needs work

I mentioned this in #22 but the patches that follow continue to use .field--widget-paragraphs in 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 Claro

rkelbel48’s picture

Since 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?

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

redneko’s picture

StatusFileSize
new33.42 KB

Hi, I am experiencing this issue too. The paragraph fields are overflowing on the right and overlap the menu.
Screenshot of a node edit page, where the paragraph sections overlap with the menu on the right
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.

sker101’s picture

@RedNeko

This might be a different issue, not related to Paragraphs module, see

https://www.drupal.org/project/drupal/issues/3332416

redneko’s picture

@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!

podarok’s picture

#8 added to YMCA Website Services distribution ( formerly Open Y ) as it solves the issue
treat this as RTBC if needed

aporie’s picture

StatusFileSize
new18.81 KB
new19.27 KB
new556 bytes

Agree 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-wrap on the toolbar.
Ckeditor toobar.

With the following patch, you restore the behavior as it used to be with ckeditor 4:
Ckeditor4 like toolbar

I think this could be an option to add to claro theme.

shweta__sharma’s picture

StatusFileSize
new1.07 KB
new536 bytes

Fixed the CCF in #45

aporie’s picture

Yep, thanks shweta, figured it out when rebuilding my project. Bug was still there ...

saschaeggi’s picture

Status: Needs work » Closed (won't fix)
Issue tags: +ClaroContributionDay2023

This 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

eddylbs’s picture

Thanks @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