bslib icon indicating copy to clipboard operation
bslib copied to clipboard

Card in sidebar doesn't support full screen

Open rickhelmus opened this issue 1 year ago • 3 comments

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

rickhelmus avatar Mar 12 '24 20:03 rickhelmus

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

palouse-anglers avatar Jun 05 '24 02:06 palouse-anglers

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.

gadenbuie avatar Jul 11 '24 18:07 gadenbuie

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

shum461 avatar Jul 12 '24 00:07 shum461