Skip to content

Commit

Permalink
Hide "Show Block Breadcrumbs" settings on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jun 15, 2021
1 parent a8ec9c1 commit 00e3d30
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions packages/edit-widgets/src/components/more-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,21 @@ export default function MoreMenu() {
'Contain text cursor inside block deactivated'
) }
/>
<FeatureToggle
feature="showBlockBreadcrumbs"
label={ __( 'Display block breadcrumbs' ) }
info={ __(
'Shows block breadcrumbs at the bottom of the editor.'
) }
messageActivated={ __(
'Display block breadcrumbs activated'
) }
messageDeactivated={ __(
'Display block breadcrumbs deactivated'
) }
/>
{ isLargeViewport && (
<FeatureToggle
feature="showBlockBreadcrumbs"
label={ __( 'Display block breadcrumbs' ) }
info={ __(
'Shows block breadcrumbs at the bottom of the editor.'
) }
messageActivated={ __(
'Display block breadcrumbs activated'
) }
messageDeactivated={ __(
'Display block breadcrumbs deactivated'
) }
/>
) }
</MenuGroup>
</>
) }
Expand Down

0 comments on commit 00e3d30

Please sign in to comment.