RinteRface / shinydashboardPlus

extensions for shinydashboard
https://shinydashboardplus.rinterface.com
Other
449 stars 78 forks source link

Keep full header title when sidebar is collapsed #168

Open KHwong12 opened 1 year ago

KHwong12 commented 1 year ago

The Issue

When the sidebar is collapsed (setting collapsed = TRUE for shinydashboardPlus::dashboardSidebar), the title in the header is cut off.

Below are two screenshots from the dashboard I am developing for reference.

Cut-off title when sidebar is collapsed

collapsed-sidebar

Full title text when sidebar is expanded

expanded-sidebar

The Question

Is there any way to keep the width of the title always the same as the value of titleWidth, so that the title text will not cut-off?

Additional context

This may be similar to #115. The issue tackles the case when the sidebar is minified (where the sidebar is completely hidden from the UI). I would like to know how to do similar settings when the sidebar is collapsed (where the sidebar still appears as a narrow column with icons on the left).