Comments

himanshu_sindhwani created an issue. See original summary.

himanshu_sindhwani’s picture

Issue summary: View changes
sreenivas bttv’s picture

Assigned: Unassigned » sreenivas bttv
sreenivas bttv’s picture

Assigned: sreenivas bttv » Unassigned
Status: Active » Needs review
StatusFileSize
new338 bytes

@himanshu_sindhwani, Thanks for raising the issue. I have attached a patch that fixes the issue.

Patch details:
- While clicking on the mobile nav button js-fixed class adding to body. so keeping width: 100% fixed the issue when body has js-fixed class.

komalk’s picture

patch #4 is applied successfully.
#5 added base.css file along with complied css
attached the screen shot for the reference.

mherchel’s picture

I'm unable to reproduce this. What browser are you seeing this in? Are you testing alpha2 or the latest HEAD?

himanshu_sindhwani’s picture

StatusFileSize
new26.81 KB

I tested with the latest head. I read the CSS written in base.css and observed body gets width: 100% when it has class 'is-always-mobile-nav'.
And this class is added when you have the checkbox Use the favicon supplied by the theme checked in theme settings.
If this checkbox is off you will see the issue.

checkbox

I am using Chrome browser.

hansa11’s picture

@himanshu_sindhwani: I still couldn't replicate this one, is there anything else that should be followed other than the above steps?

himanshu_sindhwani’s picture

@hansa11 , have you made the checkbox off as mentioned in #7 ?

sreenivas bttv’s picture

@mherchel, @hansa11,

The misalignment happen when especially at the home page when no content available.

mherchel’s picture

StatusFileSize
new1.55 MB

I'm still unable to reproduce. Here's an animated gif.

sreenivas bttv’s picture

@mherchel,

As mentioned in #10, the issue will happen only when the home page has no content or fresh installation of Drupal.

issue of cross menu button

mherchel’s picture

@Sreenivas Bttv - the animated gif in #11 is on the homepage with no content.

In your gif above, I see there is content. I'm still unable to reproduce this.

ju.vanderw’s picture

@himanshu_sindhwani I also can't reproduce this - I have favicon checkbox off, as well as Enable mobile menus at all widths off, as shown on your screenshot. I'm on Drupal 8.9.

himanshu_sindhwani’s picture

To be more specific I am using chrome on IOS device. I have to check on other devices. Its certainly reproducing for me.

ju.vanderw’s picture

StatusFileSize
new46.29 KB

I was on Chrome browser on a MacBook, and had the mobile testing set to iPhone X.

komalk’s picture

StatusFileSize
new73.25 KB

I was on Chrome browser on a MacBook, and had the mobile testing set to iPhone X.
able to reproduce this issue logged in with an anonymous user.

ju.vanderw’s picture

I was finally able to duplicate it - by creating a new account that was not administrator, but just an authenticated user, like @komalkolekar mentioned.

In fact, after some testing, this happens when the user is logged in but does not have permissions for the admin toolbar, because even as an administrator, when I gave permission for the toolbar, it fixed the problem. Also, it only seems to be happening on `/user` for me.

Removing body.js-fixed {position: fixed} seems to fix the problem.

mherchel’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @ju.vanderw! Yep. I'm finally able to duplicate it. It's on the user page when there is no admin toolbar. Weird stuff. The patch fixes it perfectly.

mherchel’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.