rstudio / flexdashboard

Easy interactive dashboards for R
https://pkgs.rstudio.com/flexdashboard/
Other
812 stars 301 forks source link

navbar-right flex css #316

Closed meztez closed 3 years ago

meztez commented 3 years ago

Using the latest bslib with flexdashboard, I believe the bootstrap css flex property for navbar messes with the navbar layout as it forces all flex elements to have the same width.

Reprex:

---
title: "Break Line"
author: "meztez"
output: 
  flexdashboard::flex_dashboard:
    orientation: rows
    vertical_layout: fill
    theme:
      version: 4
      bootswatch: cosmo
      primary: "#003366"
runtime: shiny_prerendered
---

Mercury
=====================================  

Venus
=====================================  

Earth
=====================================  

Mars
=====================================  

Jupiter
=====================================  

Uranus
=====================================  

Neptune
=====================================  

Pluto
=====================================  

image

image

Switching theme to cosmo still works fine

theme: cosmo
cpsievert commented 3 years ago

Thanks @meztez. Try installing https://github.com/rstudio/bslib/pull/286 for a tentative fix.

meztez commented 3 years ago

@cpsievert Tested it, looks fine.