Skip to content

Commit 2f21e19

Browse files
authored
Fixed broken post list layout on mobile (#24561)
fixes #23643 - Fixed an layout issue that happens when the user collapses the sidebar while in desktop view and then switch to mobile view and go to the posts page. See issue above for more details.
1 parent 8bad9bd commit 2f21e19

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ghost/admin/app/styles/layouts/main.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,9 +1184,11 @@ body:not(.gh-body-fullscreen) .gh-viewport {
11841184
max-width: var(--main-layout-content-maxwidth);
11851185
}
11861186

1187-
.gh-nav-hidden + .gh-main .gh-canvas {
1188-
padding-left: 80px;
1189-
padding-right: 80px;
1187+
@media (min-width: 800px) {
1188+
.gh-nav-hidden + .gh-main .gh-canvas {
1189+
padding-left: 80px;
1190+
padding-right: 80px;
1191+
}
11901192
}
11911193

11921194
.gh-canvas.gh-canvas-sticky {

0 commit comments

Comments
 (0)