Sidebar2 - Allow custom height or CSS variable for .nav-scrollable element
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- html
- Domaine
- frontend
Piste de recherche
Start by locating the Sidebar2 component and the scoped CSS that sets .nav-scrollable height inside the min-width: 641px media query. Compare how the component exposes other styling options and choose a supported way to let consumers control or disable that height. Done means the fixed height can be adapted for layouts with a footer and the change is covered by relevant component tests or documentation.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem
Currently, the Sidebar2 component renders a scrollable content area (.nav-scrollable) with a hardcoded height defined via scoped CSS:
@media (min-width: 641px) {
.nav-scrollable[b-xxxxxxx] {
height: calc(100vh - 3.5rem);
overflow-y: auto;
}
}
This prevents consumers from overriding the height or using a custom layout with a footer, as the height gets reapplied after window resizing due to media queries or re-rendering.
Expected Behavior
As a library consumer, I would like to:
Override the scrollable content height via a CSS variable (e.g. --bb-sidebar-content-height)
Or pass a parameter like ContentHeight to the Sidebar2 component
Or have the ability to disable internal height styling entirely and manage layout externally
Why This Matters
When using a layout with a fixed footer, the hardcoded height causes the last few sidebar items to be hidden behind the footer, especially on smaller screen heights. Using global CSS or inline styles doesn't work due to scoped CSS and internal media queries.
Proposed Solution
Add support for one of the following:
A CSS variable like --bb-sidebar-content-height used in the scoped style
A ContentHeight parameter on the Sidebar2 component
An option to disable or override internal height behavior (similar to class or style passthrough)
This would make Sidebar2 much easier to integrate into complex layouts without resorting to JavaScript interop hacks.
Thank You!
Thanks for the great component library — this is the only issue I’ve had while integrating Sidebar2 into a real-world layout.
- Langage dominant
- HTML
- Étoiles
- 1.2k
- Forks
- 111
- Merge moyen
- 4 min
- PR mergées (30 j)
- 55
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de vikramlearning/blazorbootstrap
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
vikramlearning/blazorbootstrap#1388 ·
Les mainteneurs répondent en général sous 1 jour
-
NET 11 SupportOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 28/100
vikramlearning/blazorbootstrap#1362 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
vikramlearning/blazorbootstrap#1346 ·
Les mainteneurs répondent en général sous 1 jour
-
Showcase: rich sample websites built with Blazor BootstrapPeut-être pris @gvreddy04 l’a pris il y a 8 jours. Ouverte
vikramlearning/blazorbootstrap#1343 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
[New Component] TreeViewOuvertearea-tree-view new component
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 8/100
vikramlearning/blazorbootstrap#1339 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de vikramlearning/blazorbootstrap
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
DioxusLabs/blitz#1614 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
boxlite-ai/boxlite#2777 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
quality-assurance
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Paul-Austin-Oswego-CSC480-HCI521/gift-app#249 ·
Les mainteneurs répondent en général sous 1 jour
-
bug P3
Difficulté 1/5 Moins d'une heure Accessibilité débutants 87/100
Les mainteneurs répondent en général sous 1 jour