rstudio / bslib

Tools for theming Shiny and R Markdown via Bootstrap 3, 4, or 5.
https://rstudio.github.io/bslib/
Other
443 stars 50 forks source link

Card in sidebar doesn't support full screen #1008

Open rickhelmus opened 4 months ago

rickhelmus commented 4 months ago

Hello,

When placing a card inside a sidebar, the full screen functionality doesn't seem to work as expected, and the card will only expand to the dimensions of the sidebar.

Small example:

bslib::page_fillable(
    bslib::layout_sidebar(
        sidebar = bslib::sidebar(
            title = "Test",
            bslib::card("Side card", full_screen = TRUE)
        ),
        bslib::card("Main card", full_screen = TRUE),
    )
)

Tested with version 0.6.1 and with the latest code from GitHub.

Thanks, Rick

palouse-anglers commented 1 month ago

I'm having the same issue. Any progress on this?

gadenbuie commented 4 days ago

This is harder than it sounds and would likely require rewriting a large portion of the card implementation. We may do that at some point and if we do we'll definitely consider this.

In the mean time, it'd be helpful if anyone interested in this could link to or show how they'd like to use this feature. It's hard to envision the use case where cards are better in the sidebar than in the main content area, so additional examples (even just screenshots) would help.

shum461 commented 4 days ago

this app on the watersheds tab is a good example. Both sidebars (map is fine) won't go full screen