Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nav nav-pills class in R Shiny #1286

Open
flixi67 opened this issue Nov 19, 2023 · 2 comments
Open

nav nav-pills class in R Shiny #1286

flixi67 opened this issue Nov 19, 2023 · 2 comments

Comments

@flixi67
Copy link

flixi67 commented Nov 19, 2023

Hey,
when using the Lux theme in Shiny with the bslib library, the nav pills are not displayed side by side, but on top of each other. Only in that theme tho.

Warm regards!

@flixi67
Copy link
Author

flixi67 commented Nov 19, 2023

class = "nav nav-pills"

@thomaspark
Copy link
Owner

Hey @flixi67, Lux has bigger margins on its components, nav pills included. If you use it in a small area, the child elements may wrap to a new line. To avoid this, you can adjust this rule:

.nav-pills>li {
  margin-right: 2rem;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants