-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Mainpanel below sidebarpanel #1190
Comments
Hey @rafanmir, does the same happen for default Bootstrap? Could you share a demo of this we can inspect? |
I tested with the default bootstrap and I had the same issue. Here's the code. `ui <- fluidPage( TitletitlePanel("Title"), Input values - sidebarsidebarPanel( Patient characteristics"),
), #Main panel
) Output 1: plot1output$plot1 <- renderPlot({
}) rec <- reactive({
}) output$recommend <- renderText({"recommended wait time" Create table1output$table1 <- renderTable({
}) |
I recommend working it out in vanilla Bootstrap first. Once that's looking good, try with a Bootswatch theme. There may be a bug with the markup that's generated. |
I'll try that, thanks. |
Just adding some info in case anyone else has the same issue. This is a problem with the bslib package, and happens with bootstrap versions 4 and 5. It can be fixed if you use sidebarLayout() for the sidebar and main panels: rstudio/bslib#419 |
Thanks for the follow-up and resolution. |
I ran into this problem too. It would help to mention this issue in the main docs, given that many shiny app developers use |
Hi,
I'm building an app with shiny and when I add any bootswatch theme the main panel moves below the sidebar panel. I tried forcing them to stay in the same row using fluidRow and I noticed there seems to be a right margin for both panels (screenshot below). But then I set all margins to 0 (style = "margin: 0 0 0 0"). Is there any other setting I should change so I can have the main panel next to the sidebar panel?
The text was updated successfully, but these errors were encountered: