Skip to content

Commit

Permalink
improve mobile behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Sep 24, 2024
1 parent d4934a5 commit 176a36d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion packages/edit-site/src/components/layout/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,13 @@ export default function useLayoutAreas() {
</Page>
),
preview: <Editor />,
mobile: hasEditCanvasMode && <Editor />,
mobile: hasEditCanvasMode ? (
<Editor />
) : (
<Page className="edit-site-styes" title={ __( 'Styles' ) }>
<GlobalStylesUI />
</Page>
),
},
widths: {
content: 380,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function SidebarNavigationScreenGlobalStyles( { backPath } ) {
)
}
/>
{ ! isMobileViewport && isViewMode && (
{ isViewMode && (
<StyleBook
enableResizing={ false }
isSelected={ () => false }
Expand Down

0 comments on commit 176a36d

Please sign in to comment.