Shiny dashboard sidebar menu overflow

Is there any way to customize some text on shinydashboard with word shinydashboard ? The default behavior seems to be due to the fact that it flows into the area of ​​the body.

I would like to avoid changing css directly, however, if there is a workaround that involves modifying CSS as part of the server / ui code itself, then I am open to this.

 ui <- dashboardPage( dashboardHeader( title = "Sidebar spill" ), dashboardSidebar( sidebarMenu( menuItem(text = "sfsdf sfaosh oas fwue wi aseiu wehw wuer woeur owuer ") ) ), dashboardBody( fluidRow( ) ) ) server <- function(input, output) { } shinyApp(ui, server) } 
+6
source share
2 answers

The file "AdminLTE.min.css" (this version is anyway in this version of Shinydashboard) indicates "white space: nowrap! Important" for the class "sidebar-menu", as well as the "li" elements with the class "header", which are direct descendants of elements with the class "sidebar-menu". I saw that the "li" elements in the sidebar menu of my Shinydashboard application do not have a "header" class, so I tried the "white space: nowrap! Important" (this was used because the "ul" element containing the menu has a class of "sidebar- menu ") by adding the following CSS to the custom CSS file:

 .sidebar-menu > li { white-space: normal; } 
+2
source

what about this type

 ... dashboardSidebar( sidebarMenu( tags$div(class="header", checked=NA, tags$p("sfsdf sfaosh oas fwue", tags$br(), "wi aseiu wehw wuer woeur owuer") ) ) ), ... 
0
source

All Articles