From be8236d042d9028d010252b69287431d3fbf1131 Mon Sep 17 00:00:00 2001 From: Enrique Piqueras Date: Fri, 20 Sep 2019 12:23:59 -0700 Subject: [PATCH] Editor: Fix and align collapsing logic for "Save Draft" and "Saved" button states. (#17506) --- packages/editor/src/components/post-saved-state/index.js | 2 +- packages/editor/src/components/post-saved-state/style.scss | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/editor/src/components/post-saved-state/index.js b/packages/editor/src/components/post-saved-state/index.js index bb575abd49433..0fabd1c0f80fe 100644 --- a/packages/editor/src/components/post-saved-state/index.js +++ b/packages/editor/src/components/post-saved-state/index.js @@ -156,5 +156,5 @@ export default compose( [ onSave: dispatch( 'core/editor' ).savePost, } ) ), withSafeTimeout, - withViewportMatch( { isLargeViewport: 'medium' } ), + withViewportMatch( { isLargeViewport: 'small' } ), ] )( PostSavedState ); diff --git a/packages/editor/src/components/post-saved-state/style.scss b/packages/editor/src/components/post-saved-state/style.scss index 64c731c1e968c..49f546627651a 100644 --- a/packages/editor/src/components/post-saved-state/style.scss +++ b/packages/editor/src/components/post-saved-state/style.scss @@ -27,10 +27,4 @@ // This needs specificity to override inherited styles. .edit-post-header .edit-post-header__settings .components-button.editor-post-save-draft { margin: 0; - - @include break-small() { - .dashicon { - display: none; - } - } }