Skip to content

Commit

Permalink
Reduce amount of changes (for PyShiny)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Jul 10, 2023
1 parent 30eea52 commit ce6cad0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/page.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ page_fillable <- function(..., padding = NULL, gap = NULL, fillable_mobile = FAL
lang = lang,
bindFillRole(
tags$body(
class = "bslib-page-fillable bslib-gap-spacing",
class = "bslib-page-fill bslib-gap-spacing",
style = css(
padding = validateCssPadding(padding),
gap = validateCssUnit(gap),
Expand Down
2 changes: 1 addition & 1 deletion inst/components/dist/page_fillable/page_fillable.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
html{height:100%}.bslib-page-fillable{width:100%;height:100%;margin:0;padding:var(--bslib-spacer);gap:var(--bslib-spacer)}@media (max-width: 575.98px){.bslib-page-fillable{height:var(--bslib-page-fill-mobile-height, auto)}}
html{height:100%}.bslib-page-fill{width:100%;height:100%;margin:0;padding:var(--bslib-spacer);gap:var(--bslib-spacer)}@media (max-width: 575.98px){.bslib-page-fill{height:var(--bslib-page-fill-mobile-height, auto)}}
4 changes: 2 additions & 2 deletions inst/components/scss/page_fillable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ html {
height: 100%;
}

.bslib-page-fillable {
.bslib-page-fill {
width: 100%;
height: 100%;
margin: 0;
Expand All @@ -11,7 +11,7 @@ html {
}

@include media-breakpoint-down(sm) {
.bslib-page-fillable {
.bslib-page-fill {
height: var(--bslib-page-fill-mobile-height, auto);
}
}
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
renderTags(page_sidebar("main", title = "Title", sidebar = sidebar(open = "always")))$
html
Output
<body class="bslib-page-fillable bslib-gap-spacing html-fill-container" style="padding:0px;gap:0px;--bslib-page-fill-mobile-height:auto;">
<body class="bslib-page-fill bslib-gap-spacing html-fill-container" style="padding:0px;gap:0px;--bslib-page-fill-mobile-height:auto;">
<h1 class="bslib-page-title">Title</h1>
<div class="bslib-sidebar-layout html-fill-item" data-bslib-sidebar-border="false" data-bslib-sidebar-border-radius="false" data-bslib-sidebar-open="always" data-require-bs-caller="layout_sidebar()" data-require-bs-version="5" style="--bslib-sidebar-width:250px;--bslib-sidebar-max-height-mobile:250px;">
<div class="main bslib-gap-spacing html-fill-container" role="main">main</div>
Expand Down

0 comments on commit ce6cad0

Please sign in to comment.