From 32ee6a3588215b340a839a8eff32426d0c5b6ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Wed, 3 Apr 2024 09:59:32 +0200 Subject: [PATCH 1/8] Display content frame in mobile when canvas is not edit --- packages/edit-site/src/components/layout/router.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/layout/router.js b/packages/edit-site/src/components/layout/router.js index 2b783ce895927d..3482c122c36305 100644 --- a/packages/edit-site/src/components/layout/router.js +++ b/packages/edit-site/src/components/layout/router.js @@ -52,7 +52,9 @@ export default function useLayoutAreas() { mobile: canvas === 'edit' ? ( - ) : undefined, + ) : ( + + ), }, widths: { content: isListLayout ? 380 : undefined, From 575dee92c6d7c2ef308cd3d753f2e036444ee26b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Fri, 5 Apr 2024 10:28:35 +0200 Subject: [PATCH 2/8] Mobile layout: do not use widths from content in full layout --- packages/edit-site/src/components/layout/index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/edit-site/src/components/layout/index.js b/packages/edit-site/src/components/layout/index.js index d95f9d597db43d..001a4fed667848 100644 --- a/packages/edit-site/src/components/layout/index.js +++ b/packages/edit-site/src/components/layout/index.js @@ -294,12 +294,7 @@ export default function Layout() { { isMobileViewport && areas.mobile && ( -
+
{ areas.mobile }
) } From eaca957fcb91b4a63b9f7d7e0dfe7f37101e7b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Wed, 3 Apr 2024 11:10:25 +0200 Subject: [PATCH 3/8] Pages: give space for top-bar (with hub & search) in mobile --- packages/edit-site/src/components/page-pages/index.js | 1 + packages/edit-site/src/components/page-pages/style.scss | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/packages/edit-site/src/components/page-pages/index.js b/packages/edit-site/src/components/page-pages/index.js index c6b6d95e57a51f..b43fdd08119bab 100644 --- a/packages/edit-site/src/components/page-pages/index.js +++ b/packages/edit-site/src/components/page-pages/index.js @@ -387,6 +387,7 @@ export default function PagePages() { return (