[Website] The navigation menu is missing on mobile devices

Post Reply
VincentF
Posts: 75
Joined: Mon Jun 29, 2020 8:22 pm

[Website] The navigation menu is missing on mobile devices

Post by VincentF »


I don't know where to put this, so I went to the Off-Topic subforum.

The menu does not appear on mobile phones anymore :

image.png.27e1a03d9519c36d15437bf9e7eb8769.png

Looking at the HTML code, I figured out it's missing a button here :

<li data-ipsdrawer="" data-ipsdrawer-drawerelem="#elMobileDrawer">

    <a href="#"><i class="fa fa-bars"></i></a>

</li>

Once the button is back, clicking on it show a broken menu :

image.png.4f4961cc437ae9ba9ba731f8cd79d99d.png

Far from being good with CSS, I tried to fix this

// this is a missing line that is responsible for breaking the menu

.ipsFlex.ipsFlex-fd\:column {

    flex-direction: column;

}

// color of the notification icons, feel free to change it

.cUserNav_icon a {

    color: #3d6594;

}

// leave some space around the notification icons so it's not stuck on the edge of the screen

#elUserNav_mobile {

    margin: 0 10px;

}

The result :

image.png.cce2193a562d58910bec943fab6c4108.png

 

I'd like to also add some minor modifications in order to improve the look of the site :

// 1. fix page title padding


.ipsPageHeader {

    padding: 10px;

}



// 2. Hide rank from mobile menu (missing on desktop, retrievable from our profile)

.elMobileDrawer__rank {

    display: none;

}

// OR decrease the size of the rank icon

.elUserNav_achievements__icon img {

    width: 64px;

    height: auto;

}

// Note: the CSS class "ipsDimension:3" is missing



// 3. Center the icons from the forums page when on mobile

@media screen and (max-width:979px) {

    .ipsItemStatus.ipsItemStatus_large {

         line-height:30px;

    }

}

// 4. improve the icons on the small badges besides topics (pinned, poll, ...)

.ipsBadge.ipsBadge_icon.ipsBadge_small i {

    height: 14px;

    vertical-align: middle;

    color: #fff;

}

.ipsBadge.ipsBadge_icon.ipsBadge_small {

    line-height: 18px;

}

ZeroByte
Posts: 714
Joined: Wed Feb 10, 2021 2:40 pm

[Website] The navigation menu is missing on mobile devices

Post by ZeroByte »


This is driving me crazy. Thanks for pointing it out.

TomXP411
Posts: 1802
Joined: Tue May 19, 2020 8:49 pm

[Website] The navigation menu is missing on mobile devices

Post by TomXP411 »


There's a little tool in Chrome to show the mobile version of pages: 

image.png.d66726d5549424cce76293d46065fc7f.png

I see the behavior you're talking about, and the menu is indeed disappearing. Rotating my iPad horizontal brings up the full menu, but my phone stubbornly refuses to show it. I'm looking at the template code now, so I'm hoping to figure out where to add the code you suggested. 

I'll keep you guys posted. Thanks.

 

TomXP411
Posts: 1802
Joined: Tue May 19, 2020 8:49 pm

[Website] The navigation menu is missing on mobile devices

Post by TomXP411 »


I reactivated the menu in the CSS, but as Vincent said, the sub-menus are borked. I'll work on it more tomorrow when I have some brainpower left over. 

 

TomXP411
Posts: 1802
Joined: Tue May 19, 2020 8:49 pm

[Website] The navigation menu is missing on mobile devices

Post by TomXP411 »


Ok, there's still some weirdness with the layout (and I dislike the fact that the text doesn't reflow when zoomed), but it's as good as I can get it right now without spending a lot more time understand the layout and the templates. 

Post Reply