From 49aed0547ab5549f7556db968263ab549129ccdb Mon Sep 17 00:00:00 2001 From: Wildan Zulfikar Date: Tue, 22 Apr 2025 12:34:42 +0300 Subject: [PATCH] Make forms responsive --- .../src/components/Input/MarkdownEditor/Editor.tsx | 6 +++--- packages/dashboard/src/pages/actions/[id].tsx | 2 +- packages/dashboard/src/pages/actions/new.tsx | 2 +- packages/dashboard/src/pages/campaigns/[id].tsx | 4 ++-- packages/dashboard/src/pages/campaigns/new.tsx | 6 +++--- packages/dashboard/src/pages/contacts/[id].tsx | 2 +- packages/dashboard/src/pages/settings/api.tsx | 4 ++-- packages/dashboard/src/pages/templates/[id].tsx | 4 ++-- packages/dashboard/src/pages/templates/new.tsx | 4 ++-- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/packages/dashboard/src/components/Input/MarkdownEditor/Editor.tsx b/packages/dashboard/src/components/Input/MarkdownEditor/Editor.tsx index 56f4881..f61a0eb 100644 --- a/packages/dashboard/src/components/Input/MarkdownEditor/Editor.tsx +++ b/packages/dashboard/src/components/Input/MarkdownEditor/Editor.tsx @@ -711,8 +711,8 @@ export default function Editor({ value, onChange, mode, modeSwitcher }: Markdown <> -
-
+
+
) : ( <> -
+
diff --git a/packages/dashboard/src/pages/actions/[id].tsx b/packages/dashboard/src/pages/actions/[id].tsx index 093404d..35fc1e8 100644 --- a/packages/dashboard/src/pages/actions/[id].tsx +++ b/packages/dashboard/src/pages/actions/[id].tsx @@ -415,7 +415,7 @@ export default function Index() { return router.push("/actions"); }} className={ - "flex w-full justify-center rounded border border-neutral-300 bg-white px-6 py-2 text-base font-medium text-neutral-800 focus:outline-none focus:ring-2 focus:ring-neutral-800 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm" + "flex w-fit justify-center rounded border border-neutral-300 bg-white px-6 py-2 text-base font-medium text-neutral-800 focus:outline-none focus:ring-2 focus:ring-neutral-800 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm" } > Cancel diff --git a/packages/dashboard/src/pages/actions/new.tsx b/packages/dashboard/src/pages/actions/new.tsx index f6cae77..1f45011 100644 --- a/packages/dashboard/src/pages/actions/new.tsx +++ b/packages/dashboard/src/pages/actions/new.tsx @@ -305,7 +305,7 @@ export default function Index() { return router.push("/actions"); }} className={ - "flex w-full justify-center rounded border border-neutral-300 bg-white px-6 py-2 text-base font-medium text-neutral-700 focus:outline-none focus:ring-2 focus:ring-neutral-800 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm" + "flex w-fit justify-center rounded border border-neutral-300 bg-white px-6 py-2 text-base font-medium text-neutral-700 focus:outline-none focus:ring-2 focus:ring-neutral-800 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm" } > Cancel diff --git a/packages/dashboard/src/pages/campaigns/[id].tsx b/packages/dashboard/src/pages/campaigns/[id].tsx index 77c8eab..847b7ec 100644 --- a/packages/dashboard/src/pages/campaigns/[id].tsx +++ b/packages/dashboard/src/pages/campaigns/[id].tsx @@ -422,7 +422,7 @@ export default function Index() { } > -
+
-
+
{campaign.status === "DRAFT" ? ( <> - -
+ +
Cancel diff --git a/packages/dashboard/src/pages/contacts/[id].tsx b/packages/dashboard/src/pages/contacts/[id].tsx index bb4586f..a6084d4 100644 --- a/packages/dashboard/src/pages/contacts/[id].tsx +++ b/packages/dashboard/src/pages/contacts/[id].tsx @@ -246,7 +246,7 @@ export default function Index() { } > - +
{contact.email[0].toUpperCase()} diff --git a/packages/dashboard/src/pages/settings/api.tsx b/packages/dashboard/src/pages/settings/api.tsx index d82f0f5..3972498 100644 --- a/packages/dashboard/src/pages/settings/api.tsx +++ b/packages/dashboard/src/pages/settings/api.tsx @@ -94,7 +94,7 @@ export default function Index() { }} > -

+

{activeProject.public}

@@ -111,7 +111,7 @@ export default function Index() { }} > -

+

{activeProject.secret}

diff --git a/packages/dashboard/src/pages/templates/[id].tsx b/packages/dashboard/src/pages/templates/[id].tsx index 958e888..5d07571 100644 --- a/packages/dashboard/src/pages/templates/[id].tsx +++ b/packages/dashboard/src/pages/templates/[id].tsx @@ -203,7 +203,7 @@ export default function Index() { } > - + Cancel diff --git a/packages/dashboard/src/pages/templates/new.tsx b/packages/dashboard/src/pages/templates/new.tsx index 4a35bf3..1d24071 100644 --- a/packages/dashboard/src/pages/templates/new.tsx +++ b/packages/dashboard/src/pages/templates/new.tsx @@ -96,7 +96,7 @@ export default function Index() { <> - + Cancel