Skip to content

Commit

Permalink
Revise mobile display of Document Bar
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Jul 3, 2024
1 parent 7212b8e commit 7238351
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/editor/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function Header( {
} ) {
const isWideViewport = useViewportMatch( 'large' );
const isLargeViewport = useViewportMatch( 'medium' );
const isTooNarrowForDocumentBar = useMediaQuery( '(max-width: 382px)' );
const isTooNarrowForDocumentBar = useMediaQuery( '(max-width: 403px)' );
const {
isTextEditor,
isPublishSidebarOpened,
Expand Down
7 changes: 6 additions & 1 deletion packages/editor/src/components/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@
// At less than mobile the header’s `gap` is zero so margins are added to create a smaller
// gap around the center’s contents.
@media (max-width: #{$break-mobile - 1}) {
padding-inline: $grid-unit;
> :first-child {
margin-inline-start: $grid-unit;
}
> :last-child {
margin-inline-end: $grid-unit;
}
}
}

Expand Down

0 comments on commit 7238351

Please sign in to comment.