You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way to set sidebar width as detailed here (https://rstudio.github.io/shinydashboard/appearance.html#sidebar-width) works fine when the screen is wide, but it doesn't work very well when the screen is narrow. For example, it looks like this when the screen becomes narrow if I don't set the sidebar width.
However, it looks like this when I set the sidebar width.
Note, the sidebar is supposed to be hidden in both cases, but as you can see, part of the sidebar is still there when the screen is narrower (it is not there when the scree is wider) after I set the sidebar width, and it covers some of the elements in dashboard body. Could it be fixed?
Thank you.
The text was updated successfully, but these errors were encountered:
PeiranYu
changed the title
Part of sidebar can't be hidden when the screen is narrow after Shiny Dashboard sidebar width setting
Part of sidebar can't be hidden when the screen is narrow after sidebar width setting
Oct 5, 2016
To me, it looks like the problem is that shinydashboard sets custom CSS rules, but they only apply for wider screens. Setting width of the sidebar and titleWidth of the header to 100px, I see with my browser's web inspector the following CSS:
Thank you both and I'm sorry for the very late reply. This has been fixed in #204. The updated code is now in the development version of shinydashboard (to install in R, do devtools::install_github("rstudio/shinydashboard")), which will be released to CRAN within the next couple of weeks.
The way to set sidebar width as detailed here (https://rstudio.github.io/shinydashboard/appearance.html#sidebar-width) works fine when the screen is wide, but it doesn't work very well when the screen is narrow. For example, it looks like this when the screen becomes narrow if I don't set the sidebar width.
![image](https://cloud.githubusercontent.com/assets/5340951/19120384/9cbea154-8af0-11e6-9115-09e4338eba8b.png)
![image](https://cloud.githubusercontent.com/assets/5340951/19120514/fb00befa-8af0-11e6-9bf6-dc0705466812.png)
However, it looks like this when I set the sidebar width.
Note, the sidebar is supposed to be hidden in both cases, but as you can see, part of the sidebar is still there when the screen is narrower (it is not there when the scree is wider) after I set the sidebar width, and it covers some of the elements in dashboard body. Could it be fixed?
Thank you.
The text was updated successfully, but these errors were encountered: