Skip to content

Commit

Permalink
Improve scrolling in fullscreen mode, notably for Edge
Browse files Browse the repository at this point in the history
In #12644, we changed the behavior of scrolling for the main content area slightly, to address issues with scrolling on small screens.

As part of that, there was one small issue that made it slightly harder to scroll this main content area, only when in fullscreen mode in Microsoft Edge. This PR fixes that.

Another side effect of that prior PR was that it unset some of the scrolling rules that prevented CSS bleed (when you scroll to the end of the Block Library and proceed to scroll the body content). This PR restores that.
  • Loading branch information
Joen Asmussen committed Jan 15, 2019
1 parent 14aa7d7 commit 4100a93
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/edit-post/src/components/layout/style.scss
Expand Up @@ -114,11 +114,10 @@
margin-left: $admin-sidebar-width-collapsed;
}

// Undo the above rules for fullscreen mode.
// Provide special rules for fullscreen mode.
body.is-fullscreen-mode & {
margin-left: 0 !important;
position: relative;
top: inherit;
top: $header-height;
}
}

Expand Down

0 comments on commit 4100a93

Please sign in to comment.