Skip to content

Commit

Permalink
Fix sidebar jumpiness. (#20355)
Browse files Browse the repository at this point in the history
The sidebar grows wider when the scrollbar appears. This is a regression compared to WordPress 5.4, where the scrollbar instead indented the content. This PR fixes that.
  • Loading branch information
jasmussen committed Feb 21, 2020
1 parent b82637a commit a160f76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/edit-post/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
}
}

.block-editor-editor-skeleton__sidebar > div {
height: 100%;
}

.edit-post-layout .editor-post-publish-panel__header-publish-button {
justify-content: center;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-post/src/components/sidebar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@include break-small() {
z-index: auto;
height: 100%;
overflow: visible;
overflow: auto;
-webkit-overflow-scrolling: touch;
}

Expand Down

0 comments on commit a160f76

Please sign in to comment.