RinteRface / argonDash

argon dashboard template
https://rinterface.github.io/argonDash/
138 stars 37 forks source link

fileInput looks messy #6

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi, The widget for fileInput looks messy and the upload message bar seems too thin, as demonstrated below.

screenshot_2019-01-23 sensory data analysis dashboard 1

screenshot_2019-01-23 sensory data analysis dashboard 2

If you could point me to which CSS files need editing, I'll tweak them accordingly and issue a pull request.

Cheers!

DivadNojnarg commented 5 years ago

Hi, this is not surprising:

However, there are easy solutions:

library(shiny)
library(argonR)
library(argonDash)
shinyApp(
  ui = argonDashPage(
   title = "test",
   navbar   = argonDashNavbar(),
   sidebar = argonDashSidebar(id = "sidebar"),
   body = argonDashBody(
     tags$head(
       tags$style(
         ".progress {height: 20px;}"
       )
     ),
     fileInput("file1", "Choose CSV File")
   ),
  ),
  server = function(input, output) {}
)

I simply increase the height of the progress class (I think its 10 px by default...)

krisvanlog commented 3 years ago

The progress bar looks much better at 20px. Thanks for that solution.

Is it possible to modify the size of the button and text box so they are the same height using the same method? They don't quite line up.. I have no experience with CSS so am no sure how to go about it. I tried ".button {padding: 14px 40px;}" but it doesn't seem to change anything.

Edit: Got it....
tags$style( ".btn {padding: 11.5px 40px;}" )