Skip to content

Commit

Permalink
feat(page_main): Only apply min height/width when fillable=TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Mar 4, 2025
1 parent 61174cc commit 92ed1d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/components/scss/page_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ $bslib-sidebar-padding: $spacer * 1.5 !default;
// Ensure the page-level main area has a minimum height and width to prevent
// overly squished content in small screens, like IDE preview panels.
.bslib-sidebar-layout {
.bslib-page-main {
.bslib-page-main.html-fill-container {
min-height: var(--bslib-page-main-min-height, #{$bslib-page-main-min-height});
}

// But only apply the width constraint when the sidebar expanded (i.e.
// not collapsed or in transition) to prevent overlap with toggle button.
&:not(.sidebar-collapsed),
&.transitioning {
.bslib-page-main {
.bslib-page-main.html-fill-container {
min-width: var(--bslib-page-main-min-width, #{$bslib-page-main-min-width});
}
}
Expand Down

0 comments on commit 92ed1d7

Please sign in to comment.