datta-able-bootstrap-dashboard icon indicating copy to clipboard operation
datta-able-bootstrap-dashboard copied to clipboard

Navbar not appearing on mobile view

Open app-generator opened this issue 4 years ago • 3 comments

Description: The navbar is not visible in mobile views.

To Reproduce please execute the steps 1 - Start Template 2 - Change the resolution to 1048x445 (responsive) or bigger - Navbar is there: image

3 - Using a lower resolution, the navbar is not visible anymore - Iphone X screen ratio: image

4 - Using responsive 972 x 1156 ratio - navbar is not displayed: image

Expected behavior Navbar should be accessible on all resolutions as a full expanded menu or burger menu on lower resolutions

Desktop tests:

  • OS: Windows 10 - Browser Chrome Latest
  • OS: Windows 10 - Browser Firefox Latest

app-generator avatar Jan 21 '21 18:01 app-generator

same issue here ... any help would be much appreciated ! I spent hours and days working on this theme template, then realized it ain't displaying fine on mobile phones ... it's a shame because it's a great template. Thanks chaps for your help :-)

jossgillet avatar Mar 01 '21 12:03 jossgillet

@jossgillet These steps are for this Flask template. But it shouldn't be much different regarding the HTML. Just add it directly instead of doing step 2.

  1. Add this to navigation.html:
<header class="navbar pcoded-header navbar-expand-lg navbar-light d-lg-none">
    <div class="m-header">
        <a class="mobile-menu" id="mobile-collapse" href="#!"><span></span></a>
        <a href="/" class="b-brand">
            <div class="nav-item pcoded-menu-caption">
                <!-- Your logo img here -->
            </div>
        </a>
    </div>
</header>
  1. Then, in base.html add:
<!-- Top Bar -->
{% include 'includes/navigation.html' %}

So that it is below this line:

<!-- SideBar -->
{% include 'includes/sidebar.html' %}

That should be all for the mobile top bar to appear. Let me know if it works for you.

Teraskull avatar Apr 10 '21 20:04 Teraskull

@Teraskull I'm working with the Django template, and this almost worked 100% for me.

With that navigation.html I was getting the following:

first second third
Screenshot 2021-05-23 at 11 20 44 Screenshot 2021-05-23 at 11 20 50 Screenshot 2021-05-23 at 11 21 01

I fixed it by also adding this to styles.css:

@media only screen and (max-width: 991px) {
  .pcoded-header {
    width: 100%;
    margin-left: 0;
  }
}

After: Screenshot 2021-05-23 at 11 21 13

asofiasbo avatar May 23 '21 10:05 asofiasbo

This is resolved in latest version. Thanks for reporting.

phoenixcoded20 avatar Feb 21 '24 09:02 phoenixcoded20