Skip to content

Commit

Permalink
Limit tools on mobile.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Oct 12, 2020
1 parent 200f028 commit e508a3d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
12 changes: 8 additions & 4 deletions packages/edit-site/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,14 @@ export default function Header( {
'Generic label for block inserter button'
) }
/>
<ToolSelector />
<UndoButton />
<RedoButton />
<BlockNavigationDropdown />
{ isLargeViewport && (
<>
<ToolSelector />
<UndoButton />
<RedoButton />
<BlockNavigationDropdown />
</>
) }
{ displayBlockToolbar && (
<div className="edit-site-header-toolbar__block-toolbar">
<BlockToolbar hideDragHandle />
Expand Down
10 changes: 9 additions & 1 deletion packages/edit-site/src/components/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,16 @@ body.is-navigation-sidebar-open {

.edit-site-header__toolbar {
display: flex;
padding-left: $grid-unit-30;
align-items: center;
padding-left: $grid-unit-10;

@include break-small() {
padding-left: $grid-unit-30;
}

@include break-wide() {
padding-right: $grid-unit-10;
}

.edit-site-header-toolbar__inserter-toggle {
margin-right: $grid-unit-10;
Expand Down

0 comments on commit e508a3d

Please sign in to comment.