I'd like to use shiny::navbarPage(collapsible = TRUE)
to collapse navigation elements into a menu when my Shiny app is viewed on small screens. By default, the collapse is triggered when the width of the browser is less than 940 pixels. Is there any way to change this so that the collapse triggers with slightly larger browser widths, e.g., 1200 pixels?
I've had a look at this Bootstrap 3 Navbar Collapse and this Change bootstrap navbar collapse breakpoint without using LESS but couldn't figure out how to get it to work with Shiny.
Toy Shiny app:
library(shiny)
ui <- navbarPage("This app has a long title to take up space for the purposes of this example", collapsible = TRUE,
tabPanel("Panel that also has a long title 1"),
tabPanel("Panel that also has a long title 2"),
tabPanel("Panel that also has a long title 3")
)
server <- function(input, output) {}
shinyApp(ui = ui, server = server)