RinteRface / shinydashboardPlus

extensions for shinydashboard
https://shinydashboardplus.rinterface.com
Other
454 stars 77 forks source link

dashboardUser: Handle output when title, subtitle, and body content are not used #82

Closed KoderKow closed 4 years ago

KoderKow commented 4 years ago

There have been situations where title and subtitle are not used. My proposed changes handle these situations. If there is a subtitle, it will add the hyphen between name and title, Kyle - Dev. Or if no title, it would just be Kyle.

If the subtitle is not used I use jquery to change the height from 175px to 145px so there isn't so much padding below the name.

I have found sometimes we just want to display a name and title in the dropdown menu and so the body content is not always used. If the body content is not used it will insert a white box. I added a if(length(list(...)) > 0) to the user body section so it will not create a white box if there is no content.

Excited to hear any thoughts or critiques on these changes, I have been using this customization for a few weeks now and thought this might be an improvement on the original :)

DivadNojnarg commented 4 years ago

LGTM thanks