Needs work
Project:
Drupal core
Version:
main
Component:
Claro theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Apr 2021 at 05:01 UTC
Updated:
8 Jul 2025 at 06:13 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
gauravvvv commentedI have added a patch. Please review. Now the block is aligned centerlly.
Added after patch screenshot for reference. Please review.
Comment #3
gauravvvv commentedComment #4
sakthivel m commentedComment #5
chetanbharambe commentedComment #6
chetanbharambe commentedVerified and tested patch #4.
Patch applied successfully and found some issues.
Testing Steps:
# Go to any responsiveness device
# Goto: admin/structure/block
# Click on Place block
Expected Results:
# User should not see horizontal scroll bar once clicking on "Place Block"
Actual Results:
# Horizontal scroll bar appearing once the user clicks on "Place Block"
# Pop-up should be appearing fully and should see in full width without scrolling horizontally.
# Same functionality and UI should be worked for all "Place Block" buttons once the user clicking on that.
Moving to Needs Work.
Comment #7
chetanbharambe commentedComment #8
djsagar commentedAfter applying patch #4 issue is not resolved, it's also creating another issue, if you are using the
right: 0;on ui-dialog-off-canvas there is no space between the left side and popup.you can use
overflow: auto;on table when table is fixed popup automatically comes on screen.Already we have one issue open regarding table overflow
once it's fixed popup issue also get fixed by default.
Thanks!
Comment #10
vikashsoni commentedi applied the patches but didn't get any changes the results are same for reference sharing screenshot ....
Comment #11
Shubham Sharma 77 commentedPlease review the patch.
Comment #12
bnjmnm@Shubham Sharma 77 looks like the patch in #11 was intended for a different issue.
The tables causing horizontal scroll in #6 is very out of scope here because
Comment #16
komal1991 commentedComment #17
komal1991 commentedComment #18
bnjmnmIt's not clear if the screenshots in #16 are reviewing the MR or a patch - and if it is a patch it's not clear which one. Either way, the "after" screenshot is at a wider screen width than what would cause the reported problem so it doesn't demonstrate anything is fixed
Every solution I've seen here is adding CSS that impacts every (non off-canvas) dialog, so reviews need to look at more dialog use cases than just the one reported here OR the solution should be targeted to the Place Block dialog. We need to be sure a fix in one place doesn't cause regressions elsewhere
Lets keep reviews and changes to the merge request - and for those unfamiliar with them check out this guide. It takes ~10 minutes to learn and is much easier than dealing with patches. If anyone has trouble adjusting to Merge Requests, find me on Drupal .Slack and I'm happy to help.
The solution in in the merge request definitely has issues. I've attached a video showing that the dialog now floats off screen as the viewport is narrowed. That's a bigger bug introduced than the one reported here 🙂
Comment #22
dsandhya commentedComment #23
gauravvvv commentedComment #24
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #25
shweta__sharma commented#22 Patch will affect the other dialog styling
Digging into this issue I found two test cases -
First Case - When placing a block on the desktop and then resizing the screen on mobile view the modal has a padding issue from the left side.
See - place-block-popup-on-desktop.mp4
Second Case - When first resizing the screen on mobile view then placing the block and seeing modal works fine.
See - place-block-popup-on-mobile-screen.mp4
Comment #26
gauravvvv commentedAddressed feedback from #25. Not attaching interdiff as patch #22 no longer applies.
Comment #27
divya.sejekan commentedComment #28
divya.sejekan commentedVerified using patch- 3209870-26.patch in #26
After and Before patch result are both same no difference.
The MR is giving error.
Testing steps :
1. Install Drupal, set the Claro theme
2. Open Block Layout
3. open place block
Moving to Need work
Comment #29
ajaypratapsingh commentedI have gone this frontend issue on claro theme. In claro theme there is not a lot of space to adjust a table of drupal modal on mobile view. So Horizontal scroller will be shown for watch full drupal-modal. As I think if table structure will come into the drupal-modal then Horizontal Scroller will also come mobile view. It can be adjustable till if there is space for adjust on mobile view.
We can see difference between two different theme drupal-modals.
attaching ScreenShot.
1. Claro theme drupal-modal Screenshot
2. Bartik theme drupal-modal Screenshot
Comment #30
ajaypratapsingh commentedComment #31
smustgrave commentedHave not reviewed or tested
But issue summary should follow standard issue template.
Comment #32
shweta__sharma commentedAdded standard template.
Comment #33
sandip commentedI am working on it.
Comment #34
sandip commentedUnassigning myself from this issue as I am unable to proceed with the fix.