From 9eaadadf4274a0205f4b5cfd75cfa7d2cf0f9f5a Mon Sep 17 00:00:00 2001 From: Mitchell Austin Date: Sat, 15 Jun 2024 18:51:14 -0700 Subject: [PATCH] Better match existing responsiveness --- .../editor/src/components/header/index.js | 5 ++-- .../editor/src/components/header/style.scss | 27 ++++++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/packages/editor/src/components/header/index.js b/packages/editor/src/components/header/index.js index 35816ce0b51b9a..c46ede7583c58f 100644 --- a/packages/editor/src/components/header/index.js +++ b/packages/editor/src/components/header/index.js @@ -60,6 +60,7 @@ function Header( { } ) { const isWideViewport = useViewportMatch( 'large' ); const isLargeViewport = useViewportMatch( 'medium' ); + const isMobileViewport = useViewportMatch( 'mobile' ); const { isTextEditor, isPublishSidebarOpened, @@ -105,7 +106,7 @@ function Header( { return (
{ blockToolbar } - { ( title || showDocumentBar ) && ( + { isMobileViewport && ( title || showDocumentBar ) && ( :first-child { + margin-inline: $grid-unit-20 0; + } + @include break-mobile { + clip-path: none; + + & > :first-child { + margin-inline: 0; + } + } .table-of-contents { display: none;