Problem/Motivation

Claro's Place block layout is broken for the mobile screen.
Left: 0; is given, it results in the block being sticky to the left side.

Steps to reproduce

Go to block layout and place block. Switch the screen on mobile view and see the issue.

Proposed resolution

Remaining tasks

  • Review
  • Commit

User interface changes

before

API changes

None

Data model changes

None

Release notes snippet

None

Issue fork drupal-3209870

Command icon 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:

Comments

Gauravmahlawat created an issue. See original summary.

gauravvvv’s picture

StatusFileSize
new792 bytes
new47.84 KB

I have added a patch. Please review. Now the block is aligned centerlly.

Added after patch screenshot for reference. Please review.

gauravvvv’s picture

Status: Active » Needs review
sakthivel m’s picture

StatusFileSize
new894 bytes
chetanbharambe’s picture

Assigned: Unassigned » chetanbharambe
chetanbharambe’s picture

Assigned: chetanbharambe » Unassigned
Status: Needs review » Needs work
StatusFileSize
new6.56 MB
new197.87 KB
new187.84 KB

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

chetanbharambe’s picture

djsagar’s picture

StatusFileSize
new74.13 KB
new74.09 KB

After 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

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

once it's fixed popup issue also get fixed by default.

Thanks!

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

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

vikashsoni’s picture

i applied the patches but didn't get any changes the results are same for reference sharing screenshot ....

Shubham Sharma 77’s picture

Status: Needs work » Needs review
StatusFileSize
new1.37 KB

Please review the patch.

bnjmnm’s picture

@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

  • It's true for all themes (not just Claro) when tables exceed the viewport width
  • It's also true for all tables exceeding the viewport width, it's not specific to the block layout form or the issue reported here.

hooroomoo made their first commit to this issue’s fork.

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.

komal1991’s picture

StatusFileSize
new129.67 KB
new110.91 KB
new127.5 KB
komal1991’s picture

Status: Needs review » Reviewed & tested by the community
bnjmnm’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new4.16 MB

It'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 🙂

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.

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.

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.

dsandhya’s picture

StatusFileSize
new912 bytes
new17.4 KB
new16.96 KB
gauravvvv’s picture

Status: Needs work » Needs review
needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new85 bytes

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

shweta__sharma’s picture

#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

gauravvvv’s picture

Status: Needs work » Needs review
StatusFileSize
new1005 bytes

Addressed feedback from #25. Not attaching interdiff as patch #22 no longer applies.

divya.sejekan’s picture

Assigned: Unassigned » divya.sejekan
divya.sejekan’s picture

Assigned: divya.sejekan » Unassigned
Status: Needs review » Needs work
StatusFileSize
new1.86 MB
new2.25 MB

Verified 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

ajaypratapsingh’s picture

I 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

ajaypratapsingh’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs issue summary update

Have not reviewed or tested

But issue summary should follow standard issue template.

shweta__sharma’s picture

Issue summary: View changes

Added standard template.

sandip’s picture

I am working on it.

sandip’s picture

Unassigning myself from this issue as I am unable to proceed with the fix.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.