Card in sidebar doesn't support full screen
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
I'm having the same issue. Any progress on this?
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.
this app on the watersheds tab is a good example. Both sidebars (map is fine) won't go full screen