Skip to content

Commit

Permalink
fix(banner): broken layout on smaller viewports (#1536)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Oct 25, 2022
1 parent fd609f5 commit 028cc2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/client/theme-default/components/VPContent.vue
Expand Up @@ -52,7 +52,7 @@ const NotFound = inject('NotFound')
.VPContent {
flex-grow: 1;
flex-shrink: 0;
margin: 0 auto;
margin: var(--vp-layout-top-height, 0px) auto 0;
width: 100%;
}
Expand All @@ -61,13 +61,17 @@ const NotFound = inject('NotFound')
max-width: 100%;
}
.VPContent.has-sidebar {
margin: 0;
}
@media (min-width: 960px) {
.VPContent {
padding-top: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px));
padding-top: var(--vp-nav-height);
}
.VPContent.has-sidebar {
margin: 0;
margin: var(--vp-layout-top-height, 0px) 0 0;
padding-left: var(--vp-sidebar-width);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/client/theme-default/components/VPLocalNav.vue
Expand Up @@ -48,6 +48,7 @@ function scrollToTop() {
width: 100%;
background-color: var(--vp-c-bg);
transition: border-color 0.5s, background-color 0.5s;
margin-top: var(--vp-layout-top-height, 0px);
}
@media (min-width: 960px) {
Expand Down

0 comments on commit 028cc2c

Please sign in to comment.