UX: Toggle collapse/uncollapse of sidebars
@nortonandreev ya está trabajando en esto.
Desde el 9/5/2025.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
When the sidebars are collapsed (or uncollapsed), their state is not saved like a toggle, which means that these sections will be collapsed (or uncollapsed) again if you go to pages outside the section in question.
Desired Behavior
The sidebar collapse behaviour should be more like a toggle, remembering the state set by one user even if the user navigates to pages outside that section.
Additional Context
Anyways, this seems to be default Starlight's configuration: the sidebar remains expanded if the user is on a page within the expanded tree; if not, the sidebar gets collapsed, allowing the user to focus on a clear structure.
If we really feel the need to have the sidebar acting like a toggle, we will need to have to implement a state management for the sidebar.
Potentially, a quite naive (but also perhaps the simplest) implementation would be to append a class name to the expanded list(s) and tweak the SidebarSublist.astro component to take into account that.
Anyways, we need to understand if there is a solid reason to do so. Overriding built-in components and implementing custom business logic makes the codebase more bugs-prone, also potentially harder to maintain.
- Lenguaje dominante
- MDX
- Estrellas
- 8
- Forks
- 4
- Merge medio
- 2 h 34 min
- PR fusionados (30 d)
- 6
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dusk-network/docs
-
Content: Add ITN2 Eligibility & Reward CheckerPosiblemente ocupada @HDauven la tomó hace 423 días. Abierto
dusk-network/docs#96 · 1 asignado ·
-
Content: Review description of rewards and slashingQuizá libre de nuevo @fed-franz la tomó hace 484 días y no hay ningún pull request abierto. Abierto
dusk-network/docs#73 · 1 asignado ·
-
section:node-operator
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
dusk-network/docs#67 ·
-
Content: Review cryptography sectionsQuizá libre de nuevo @moCello la tomó hace 527 días y no hay ningún pull request abierto. Abiertosection:learn type:docs
dusk-network/docs#33 · 2 asignados ·
-
section:developer
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
dusk-network/docs#29 · 1 comentario ·