Navigazione laterale della lista degli argomenti

A cosa serve questo componente del tema?

Trasforma la nostra navigazione standard dell’elenco degli argomenti in una barra laterale fissa (purché la finestra del browser sia più larga di 768 px). Nelle impostazioni hai anche la possibilità di visualizzare la barra laterale a destra.

Abbiamo già discusso brevemente di questo layout su Meta (Proposing a left-aligned slide out hamburger menu) e sono stato curioso di vedere come sarebbe stato semplicemente spostare la nostra navigazione esistente in una barra laterale.

Tieni presente che, trattandosi di un cambiamento drastico del layout, questo componente potrebbe non essere immediatamente compatibile con altri temi.

:microscope: Anteprima nel creatore di temi

:link: Repository Github: https://github.com/awesomerobot/discourse-sidebar-nav.git

:man_shrugging: Come installo un componente del tema?

36 Mi Piace

Could you “push” the sidebar further to the side?

It’s possible, but it’s currently designed to use the standard 1110px width that Discourse content exists within.

You could add CSS like this to make the content on pages with the sidebar wider

@media screen and (min-width: 1110px) {
  .navigation-topics,
  .categories-list,
  .tags-page,
  body[class*="category-"]:not(.archetype-regular):not(.archetype-banner) { 
    .wrap {
        max-width: 1400px;
    }
}

You could even go really crazy and set something like max-width: unset; and have a browser-wide topic list

11 Mi Piace

Hello, i wanna display this sidebar on every topic and every category
When in homepage, top menu unstill display normal
How can i do that?

Everytime we wanna search, we must comback to homepage and search them, so lost a long time! :slight_smile:
We should solve this problem!
Thank you!

3 Mi Piace

Incredible theme component!

I think the topic list sidebar should appear in tag lists as well, so when you view say subfolder the sidebar will remain consistent across all pages and serve to be more useful. This will be a very neat feature. :slight_smile:

1 Mi Piace

Mi chiedo anche se questo sia possibile.

1 Mi Piace