Making Mobile Dashboard a dropdown list

AlfmarchesGM

Hello again! Looking for some help on what to do regarding the mobile dashboard. It's causing a major discrepancy in user experience with our page.

On PC, you have the main page and the navigation list to the side. On our page, it looks like this:

image

But then, on mobile, when you tap on the menu to expose the navigation, it looks like this, even though it's set up nearly the same in our custom navigation:

image

Which, let's face it, is not nearly as useful.

Is there a way to make this dropdown agglomeration of icons become a bona fide dropdown list with the labels and everything that is useful?

Thanks in advance.

 

Comments

  • meta5by5
    Posts: 2

    I have the same issue. We don't see the navigation menu with similar options. I have added custom navigation to each page because mobile users cannot find their way around without going back to the home page and drilling down all over again.

    I have content grouped into locations, quests, Important NPCs, et.al. But they cannot be seen from the navigation. Especially from the Dashboard which drops the custom navigation.

    https://themerchantsnotebook.obsidianportal.com/

  • AlfmarchesGM
    Posts: 10

    Since there were no helpful replies here, the people on Discord helped me have a better result by adding this snippet to the custom CSS:


    ​​​​​​​.mobile-nav-top-bar > ul > li > a > .nav-icon{
         display: none;
    }
    .nav-text{
     display: inline !important;
    }

    This gives this result:

    image

  • GamingMegaverse
    GamingMegaverse
    Posts: 3,037

    Glad you found help!

    Just trying to help out.

  • twiggyleaf
    twiggyleaf
    Posts: 2,099

    smiley

    "I met a traveller from an antique land....."

    CotM May 2016: Mysteria: set in Wolfgang Baur’s MIDGARD.

    Previous CotM Aug 2012: Shimring: High Level Multiplanar Campaign

    Inner Council Member

  • Abersade
    Abersade
    Posts: 629

    The following bit of CSS may be useful in this regard:


    /* MOBILE NAVIGATION MENU - IMPROVED */
    /* Displays the navigation link text */
    .nav-text {display: inline !important;}
    /* Places all of the navigation options in a vertical list, justifies them mostly to the left, and resizes them slightly smaller */
    .mobile-nav-top-bar .custom-navigation .campaign-dashboard-navigation {display: grid; justify-content: left; font-size: 0.85em;}
    /* Aligns all of the navigation options fully to the left */
    .mobile-nav-top-bar ul li a {text-align: left;}
    /* Icon spacing and sizing */
    .custom-navigation ul, ol, dl {line-height: 1;}
    .op-icon-dash::before {padding-right: 8px;}
    .icon-openbook-02::before {padding-right: 8px;}
    .icon-home::before {padding-right: 8px;}
    .op-icon-forum::before {padding-right: 8px;}
    .icon-calendar-empty::before {padding-right: 8px;}
    .op-icon-page::before {padding-right: 8px;}
    .op-icon-image-embed::before {padding-right: 8px;}
    .op-icon-book-wiki::before {padding-right: 8px;}
    .op-icon-characters::before {padding-right: 8px;}
    .op-icon-backpack::before {padding-right: 8px;}
    .op-icon-map::before {padding-right: 8px;}
    .op-icon-gears::before {padding-right: 8px;}

    Which comes out looking like this:

    image

    To increase the size of each entry in the list you would need to experiment with different values in the following line:


    .custom-navigation ul, ol, dl {line-height: 1;}

    For me that value (1) resulted in a much nicer looking menu that was still easy to navigate.

    GM of Stream of Kairos - 2025 Campaign of the Year

    GM of Rise of the Durnskald: Wrath of the Fallen Goddess - February 2016 CotM

    GM of Core: The Ashes of Alcarna - April 2020 CotM

    Need CSS Help? It may be covered here: Abersade's CSS Hub

  • Bobloblah
    Bobloblah
    Posts: 12

    Sorry for the necromancy, but is there a way to do this that would use one's customised names (e.g. custom CSS like: #dashboard-main-nav .adventure-log a:after {content:"Journals";}) for the Nav icons in mobile, too?

  • Abersade
    Abersade
    Posts: 629

    Off the cuff I want to say yes, likely by smashing the two bits of CSS together somehow. I'll look into it further and report back shortly.

    GM of Stream of Kairos - 2025 Campaign of the Year

    GM of Rise of the Durnskald: Wrath of the Fallen Goddess - February 2016 CotM

    GM of Core: The Ashes of Alcarna - April 2020 CotM

    Need CSS Help? It may be covered here: Abersade's CSS Hub

  • Abersade
    Abersade
    Posts: 629

    Confirmed. First thing to do is to ditch this bit of code for mobile viewing, I'd recommend you start using @media at this point to differentiate between the CSS.

         /* Displays the navigation link text */

              .nav-text {display: inline !important;}

    Next up is to change these statements:


    /* Icon spacing and sizing */
    .custom-navigation ul, ol, dl {line-height: 1;}
    .op-icon-dash::before {padding-right: 8px;}
    .icon-openbook-02::before {padding-right: 8px;}
    .icon-home::before {padding-right: 8px;}
    .op-icon-forum::before {padding-right: 8px;}
    .icon-calendar-empty::before {padding-right: 8px;}
    .op-icon-page::before {padding-right: 8px;}
    .op-icon-image-embed::before {padding-right: 8px;}
    .op-icon-book-wiki::before {padding-right: 8px;}
    .op-icon-characters::before {padding-right: 8px;}
    .op-icon-backpack::before {padding-right: 8px;}
    .op-icon-map::before {padding-right: 8px;}
    .op-icon-gears::before {padding-right: 8px;}

    GM of Stream of Kairos - 2025 Campaign of the Year

    GM of Rise of the Durnskald: Wrath of the Fallen Goddess - February 2016 CotM

    GM of Core: The Ashes of Alcarna - April 2020 CotM

    Need CSS Help? It may be covered here: Abersade's CSS Hub

  • Abersade
    Abersade
    Posts: 629

    To something like this:


    /* Icon spacing, sizing, and text */
    .custom-navigation ul, ol, dl {line-height: 1;}
    .op-icon-dash::before {padding-right: 8px;}
    .op-icon-dash::after {content:"Is this a dashboard?";}
    .icon-openbook-02::before {padding-right: 8px;}
    .icon-openbook-02::after {content:"Tomes for Days";}
    .icon-home::before {padding-right: 8px;}
    .icon-home::after {content:"It R My Home";}
    .op-icon-forum::before {padding-right: 8px;}
    .op-icon-forum::after {content:"Everybody Talking";}
    .icon-calendar-empty::before {padding-right: 8px;}
    .icon-calendar-empty::after {content:"The Dayz We Playz";}
    .op-icon-page::before {padding-right: 8px;}
    .op-icon-page::after {content:"BLAHBLAHGBLAH";}
    .op-icon-image-embed::before {padding-right: 8px;}
    .op-icon-image-embed::after {content:"Pictures";}
    .op-icon-book-wiki::before {padding-right: 8px;}
    .op-icon-book-wiki::after {content:"Here be Ye Wiki";}
    .op-icon-characters::before {padding-right: 8px;}
    .op-icon-characters::after {content:"Chumps In Training";}
    .op-icon-backpack::before {padding-right: 8px;}
    .op-icon-backpack::after {content:"It's yellow!";}
    .op-icon-map::before {padding-right: 8px;}
    .op-icon-map::after {content:"Not Google Maps";}
    .op-icon-gears::before {padding-right: 8px;}
    .op-icon-gears::after {content:"Time, to make some, ch-ch-ch-changes~!";}

    GM of Stream of Kairos - 2025 Campaign of the Year

    GM of Rise of the Durnskald: Wrath of the Fallen Goddess - February 2016 CotM

    GM of Core: The Ashes of Alcarna - April 2020 CotM

    Need CSS Help? It may be covered here: Abersade's CSS Hub

  • Abersade
    Abersade
    Posts: 629 edited September 2024

    You might want to consider changing the titles of things around (EDIT: Especially since OP really didn't like the names I was trying to use, lol), but that should work for you.

    Post edited by Abersade on

    GM of Stream of Kairos - 2025 Campaign of the Year

    GM of Rise of the Durnskald: Wrath of the Fallen Goddess - February 2016 CotM

    GM of Core: The Ashes of Alcarna - April 2020 CotM

    Need CSS Help? It may be covered here: Abersade's CSS Hub

  • Bobloblah
    Bobloblah
    Posts: 12

    laugh

    Hilarious! I'll give that a shot and report back. Thanks!

  • Bobloblah
    Bobloblah
    Posts: 12

    Okay...so this runs into the same problem I was having: it adds the custom name, but it adds it in both desktop, and mobile, and doesn't remove the original names.

    So, in Desktop I see both the names I was already adding, and the ones your code has here (I am guessing I can fix this by using only your code, as it appears to add your custom names in both desktop and mobile).

    And in Mobile I see the names your code adds, plus the original OP names that I have already removed in Desktop...

  • Bobloblah
    Bobloblah
    Posts: 12

    Which I think means the only thing I'm still struggling with is removing the default OP names in Mobile, if that makes sense.

  • Abersade
    Abersade
    Posts: 629 edited October 2024
    I may have misread. Checking.
    Post edited by Abersade on

    GM of Stream of Kairos - 2025 Campaign of the Year

    GM of Rise of the Durnskald: Wrath of the Fallen Goddess - February 2016 CotM

    GM of Core: The Ashes of Alcarna - April 2020 CotM

    Need CSS Help? It may be covered here: Abersade's CSS Hub

  • Abersade
    Abersade
    Posts: 629

    Hmm, for me it's not duplicating the text on mobile but I am ending up with missing entries and icons, while on Desktop it's duplicating the words and I'm not missing icons, but I am missing icons in Firefox...

    Ah, I wasn't logged in on FF. <Abersade hurt itself in confusion!>

    I'll see if I can take a look at this tonight and will report back.

    GM of Stream of Kairos - 2025 Campaign of the Year

    GM of Rise of the Durnskald: Wrath of the Fallen Goddess - February 2016 CotM

    GM of Core: The Ashes of Alcarna - April 2020 CotM

    Need CSS Help? It may be covered here: Abersade's CSS Hub

  • Abersade
    Abersade
    Posts: 629

    Well, that wasn't as straightforward as I hoped.

    Here's a total revamp, ditch all previous code that I mentioned, and use this instead:

    /* NAVIGATION MENUS - IMPROVED v2 */

         /* Hides Default Text */

              .custom-navigation .nav-text {font-size: 0;}

         /* Front-end Customizations */

              /* Adds Custom Text */

                   #campaign-nav .dashboard a:after {content:"   Overview";}

                   #campaign-nav .front-page a:after {content:"   Home";}

                   #campaign-nav .forum a:after {content:"   Chat";}

                   #campaign-nav .adventure-log a:after {content:"  Adventures";} 

                   #campaign-nav .file-docker a:after {content:"   Gallery";} 

                   #campaign-nav .calendar a:after {content:"   Calendar";} 

                   #campaign-nav .characters a:after {content:"   Characters";} 

                   #campaign-nav .css-help-main-hub a:after {content:"   CSS Hub";} 

                   #campaign-nav .items a:after {content:"   Magic Items";} 

                   #campaign-nav .maps a:after {content:"   Mapses";} 

                   #campaign-nav .wiki a:after {content:"   Lore";}  

                   #campaign-nav .secrets a:after {content:"   Secretses";}

                   #campaign-nav .settings a:after {content:"   Settingses";}  

         /* Back-end Customizations */

              /* Adds Custom Text */

                   #dashboard-main-nav .front-page a:after {content:"Home";} 

                   #dashboard-main-nav .forum a:after {content:"Chat";} 

                   #dashboard-main-nav .adventure-log a:after {content:"Adventures";} 

                   #dashboard-main-nav .file-docker a:after {content:"Gallery";}

                   #dashboard-main-nav .characters a:after {content:"Characters";}

                   #dashboard-main-nav .items a:after {content:"Magic Items";}

                   #dashboard-main-nav .wiki a:after {content:"Lore";}

                   #dashboard-main-nav .calendar a:after {content:"Calendarses";}

                   #dashboard-main-nav .maps a:after {content:"Mapses";}

                   #dashboard-main-nav .dashboard a:after {content:"Dashboardses";}

                   #dashboard-main-nav .secrets a:after {content:"Secretses";}

                   #dashboard-main-nav .settings a:after {content:"Settingses";}

         /* Mobile-Top-Menu Customizations */

              /* Places all of the navigation options in a vertical list, justifies them mostly to the left, and resizes them slightly smaller */ 

                   .mobile-nav-top-bar .custom-navigation .campaign-dashboard-navigation {display: grid; justify-content: left; font-size: 0.85em;}

              /* Aligns all of the navigation options fully to the left */

                   .mobile-nav-top-bar ul li a {text-align: left;}

              /* Icon spacing and sizing */

                   .custom-navigation ul, ol, dl {line-height: 1;}

                   .op-icon-dash::before {padding-right: 8px;}

                   .icon-openbook-02::before {padding-right: 8px;}

                   .icon-home::before {padding-right: 8px;}

                   .op-icon-forum::before {padding-right: 8px;}

                   .icon-calendar-empty::before {padding-right: 8px;}

                   .op-icon-page::before {padding-right: 8px;}

                   .op-icon-image-embed::before {padding-right: 8px;}

                   .op-icon-book-wiki::before {padding-right: 8px;}

                   .op-icon-characters::before {padding-right: 8px;}

                   .op-icon-backpack::before {padding-right: 8px;}

                   .op-icon-map::before {padding-right: 8px;}

                   .op-icon-gears::before {padding-right: 8px;}

              /* Adds Custom Text */

                   .mobile-nav-top-bar .nav-icon.icon-home::after {content:"Home";}

                   .mobile-nav-top-bar .nav-icon.op-icon-page::after {content:"Adventures";}

                   .mobile-nav-top-bar .nav-icon.op-icon-book-wiki::after {content:"Lore";}

                   .mobile-nav-top-bar .nav-icon.op-icon-characters::after {content:"Characters";}

                   .mobile-nav-top-bar .nav-icon.op-icon-backpack::after {content:"Magic Items";}

                   .mobile-nav-top-bar .nav-icon.op-icon-map::after {content:"Mapses";}

                   .mobile-nav-top-bar .nav-icon.op-icon-dash::after {content:"Dashboardses";}

                   .mobile-nav-top-bar .nav-icon.icon-openbook-02::after {content:"Secretses";}

                   .mobile-nav-top-bar .nav-icon.op-icon-forum::after {content:"Chat";}

                   .mobile-nav-top-bar .nav-icon.icon-calendar-empty::after {content:"Calendarses";}

                   .mobile-nav-top-bar .nav-icon.op-icon-image-embed::after {content:"Galleryses";}

                   .mobile-nav-top-bar .nav-icon.op-icon-gears::after {content:"Settingses";}

    GM of Stream of Kairos - 2025 Campaign of the Year

    GM of Rise of the Durnskald: Wrath of the Fallen Goddess - February 2016 CotM

    GM of Core: The Ashes of Alcarna - April 2020 CotM

    Need CSS Help? It may be covered here: Abersade's CSS Hub

  • Abersade
    Abersade
    Posts: 629 edited October 2024
    One of the big benefits there is that it doesn't require @media. @media is quite useful, but can be a pain to manage and basically doubles the amount of CSS you have to use. Oh, and you won't need the CSS Hub bit under Front-End.
    Post edited by Abersade on

    GM of Stream of Kairos - 2025 Campaign of the Year

    GM of Rise of the Durnskald: Wrath of the Fallen Goddess - February 2016 CotM

    GM of Core: The Ashes of Alcarna - April 2020 CotM

    Need CSS Help? It may be covered here: Abersade's CSS Hub

  • Bobloblah
    Bobloblah
    Posts: 12

    Ah, nice! Thank you, Sir! I'll try this and report back.

Sign In or Register to comment.

September 2026
City of Shadows

Read the feature post on the blog
Return to Obsidian Portal

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions