bslib icon indicating copy to clipboard operation
bslib copied to clipboard

Remove margin/padding when layout_sidebar() is root element of a page_navbar nav_panel

Open PaulC91 opened this issue 1 year ago • 4 comments

Hi there.

Firstly many thanks for all the great progress on bslib. I really like the option of being able to have various page layouts within a page_navbar including some with sidebars and some without.

However, as you can currently see on your Multi-page varied layout example, when a layout_sidebar is provided as the root UI element of a nav_panel inside a page_navbar there is a noticeable amount of padding around it. I don't think this is desirable as sidebar layouts should ideally be flush to the edges of the page, like they are when a global sidebar is set in page_navbar.

Is there an easy workaround to achieve this or is possible to make this the default behaviour in the package?

Thanks!

PaulC91 avatar Jun 14 '23 16:06 PaulC91