From 4aab07119be51ef22ea500e9dbf3fdd081931d7d Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Sat, 30 Dec 2023 11:19:09 +0800 Subject: [PATCH] fix: some dashboard style on mobile (#1210) --- .../settings/navigation/page-component.tsx | 52 ++++++++-------- .../social-platforms/page-component.tsx | 61 ++++++++++--------- src/components/dashboard/PagesManager.tsx | 8 +-- 3 files changed, 63 insertions(+), 58 deletions(-) diff --git a/src/app/[locale]/dashboard/[subdomain]/settings/navigation/page-component.tsx b/src/app/[locale]/dashboard/[subdomain]/settings/navigation/page-component.tsx index b0ef478d..882f6344 100644 --- a/src/app/[locale]/dashboard/[subdomain]/settings/navigation/page-component.tsx +++ b/src/app/[locale]/dashboard/[subdomain]/settings/navigation/page-component.tsx @@ -38,31 +38,33 @@ const SortableNavigationItem = ({ - ) => - updateItem(item.id, { label: e.target.value }) - } - /> - ) => - updateItem(item.id, { url: e.target.value }) - } - /> -
- +
+ ) => + updateItem(item.id, { label: e.target.value }) + } + /> + ) => + updateItem(item.id, { url: e.target.value }) + } + /> +
+ +
) diff --git a/src/app/[locale]/dashboard/[subdomain]/settings/social-platforms/page-component.tsx b/src/app/[locale]/dashboard/[subdomain]/settings/social-platforms/page-component.tsx index c7269378..f6364ac0 100644 --- a/src/app/[locale]/dashboard/[subdomain]/settings/social-platforms/page-component.tsx +++ b/src/app/[locale]/dashboard/[subdomain]/settings/social-platforms/page-component.tsx @@ -47,34 +47,39 @@ const SortableNavigationItem = ({ - ) => - updateItem(item.id, { platform: e.target.value }) - } - options={Object.keys(PlatformsSyncMap)} - /> - ) => - updateItem(item.id, { identity: e.target.value }) - } - /> -
- -
-
- +
+ ) => + updateItem(item.id, { platform: e.target.value }) + } + options={Object.keys(PlatformsSyncMap)} + /> + ) => + updateItem(item.id, { identity: e.target.value }) + } + /> +
+ +
+
+ +
) diff --git a/src/components/dashboard/PagesManager.tsx b/src/components/dashboard/PagesManager.tsx index fe259da9..0ae23518 100644 --- a/src/components/dashboard/PagesManager.tsx +++ b/src/components/dashboard/PagesManager.tsx @@ -340,13 +340,13 @@ export const PagesManager = ({ type }: { type: NoteType }) => {
@@ -432,7 +432,7 @@ export const PagesManager = ({ type }: { type: NoteType }) => { )}
-
+
-
-
{({ open, close }) => ( <>