Skip to content

Commit

Permalink
removes check for active preview device type to enable the fixed tool…
Browse files Browse the repository at this point in the history
…bar preference (#52770)
  • Loading branch information
draganescu authored Jul 20, 2023
1 parent 3615722 commit f45e825
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/edit-post/src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ function Editor( { postId, postType, settings, initialEdits, ...props } ) {
( select ) => {
const {
isFeatureActive,
__experimentalGetPreviewDeviceType,
isEditingTemplate,
getEditedPostTemplate,
getHiddenBlockTypes,
Expand Down Expand Up @@ -80,9 +79,7 @@ function Editor( { postId, postType, settings, initialEdits, ...props } ) {
const canEditTemplate = canUser( 'create', 'templates' );

return {
hasFixedToolbar:
isFeatureActive( 'fixedToolbar' ) ||
__experimentalGetPreviewDeviceType() !== 'Desktop',
hasFixedToolbar: isFeatureActive( 'fixedToolbar' ),
focusMode: isFeatureActive( 'focusMode' ),
isDistractionFree: isFeatureActive( 'distractionFree' ),
hasInlineToolbar: isFeatureActive( 'inlineToolbar' ),
Expand Down

0 comments on commit f45e825

Please sign in to comment.