How do I control the point at which responsive columns in a Shiny page (using bootstrap) give up on trying to put all 12 columns on one page and go into mobile phone mode?
I can reproduce my problem (but nowhere near as bad as my actual application) with this simple app. See how the right of the first two tables below has been obscured by the other tables. Basically, the desired behaviour is to put the three tables vertically in a single column at this screen width, but bootstrap will not do this until the screen width goes down another 100 pixels or so.
library(shiny)
library(DT)
ui <- fluidPage(
fluidRow(
column(4, DTOutput("t1")),
column(4, DTOutput("t2")),
column(4, DTOutput("t3"))
)
)
my_cars <- mtcars[, 1:3]
names(my_cars) <- c("A longish name", "Another longish name", "A particularly long and annoying name I can't change")
server <- function(input, output) {
output$t1 <- DT::renderDataTable(my_cars, rownames = FALSE)
output$t2 <- DT::renderDataTable(my_cars, rownames = FALSE)
output$t3 <- DT::renderDataTable(my_cars, rownames = FALSE)
}
# Run the application
shinyApp(ui = ui, server = server)