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 26, 2020
1 parent 0a2aecb commit 96f531f
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 @@ -92,10 +92,14 @@ export default function Header( { openEntitiesSavedStates } ) {
'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 @@ -58,8 +58,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 96f531f

Please sign in to comment.