Skip to content

Commit

Permalink
Decrease inserter content height by tabs height
Browse files Browse the repository at this point in the history
Necessary to avoid popover bounds exceed detectino from flipping inserter, moving it off-screen in mobile.
  • Loading branch information
aduth committed Jul 31, 2017
1 parent 9a7a34c commit 5a58688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions editor/assets/stylesheets/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ $big-font-size: 18px;
$item-spacing: 10px;
$panel-padding: 16px;
$header-height: 56px;
$inserter-tabs-height: 36px;
$sidebar-width: 280px;
$sidebar-panel-header-height: 50px;
$admin-bar-height: 32px;
Expand Down
2 changes: 1 addition & 1 deletion editor/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}

.editor-inserter__content {
height: calc( 100vh - #{ $admin-bar-height-big + $header-height + $icon-button-size } );
height: calc( 100vh - #{ $admin-bar-height-big + $header-height + $icon-button-size + $inserter-tabs-height } );

@include break-medium {
height: 240px;
Expand Down

0 comments on commit 5a58688

Please sign in to comment.