I'm trying to adjust the size of the selectInput() widget in shiny using selectize.js. I've attempted to tweak various attributes listed on this page (https://github.com/selectize/selectize.js/blob/master/dist/css/selectize.css) but I can't identify the one that determines the height. Unfortunately, I lack knowledge in CSS and javascript. Any advice would be greatly appreciated.
Below is a simple example:
library(shiny)
ui <- fluidPage(
fluidRow(
actionButton('play_but', 'Play', style='height: 20px; font-size: 10px; padding: 1px 1px;'),
actionButton('pause_but', 'Pause', style='height: 20px; font-size: 10px; padding: 1px 1px;'),
selectInput("speed", label=NULL, choices = list("1" = 1, "2" = 2), selected = 1),
tags$head(tags$style(HTML(".selectize-input {max-height: 5px !important; font-size: 10px; padding: 1px 1px; box-sizing: content-box;}"))),
tags$head(tags$style(HTML(".selectize-input input {line-height: 10px;}"))),
tags$head(tags$style(HTML(".selectize-dropdown-content {font-size: 10px; }")))
)
)
shinyApp(ui, server)
This code results in: