From ceb3df3885e1e763fed1512208b3af63a4f1db55 Mon Sep 17 00:00:00 2001 From: Ashesh3 <3626859+Ashesh3@users.noreply.github.com> Date: Thu, 7 Dec 2023 12:11:22 +0530 Subject: [PATCH 1/2] Make pages responsive for mobile screens --- src/app/admin/page.tsx | 2 +- src/app/admin/tests/[testsuite_id]/page.tsx | 8 ++++---- .../admin/tests/[testsuite_id]/runs/[testrun_id]/page.tsx | 4 ++-- src/app/admin/tests/page.tsx | 2 +- src/app/admin/users/page.tsx | 6 +++--- src/components/modal.tsx | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index e5546c35..46c05495 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -49,7 +49,7 @@ export default function Page() {
-
+
-
+

Questions for {testSuite?.name}

-
+
diff --git a/src/app/admin/tests/page.tsx b/src/app/admin/tests/page.tsx index 39bf4bb4..1ea48727 100644 --- a/src/app/admin/tests/page.tsx +++ b/src/app/admin/tests/page.tsx @@ -16,7 +16,7 @@ export default function Page() {

Test Suites

-
+
New Test Suite diff --git a/src/app/admin/users/page.tsx b/src/app/admin/users/page.tsx index 0aa1351b..388c953d 100644 --- a/src/app/admin/users/page.tsx +++ b/src/app/admin/users/page.tsx @@ -19,7 +19,7 @@ const RoleButton = (props: { ) => { const { color, text, className, state, ...rest } = props; return ( - @@ -58,8 +58,8 @@ export default function Page() { return (

Users

-
- setSearchString(event.target.value)} className="!py-1 placeholder-gray-400" /> +
+ setSearchString(event.target.value)} className="!py-1 placeholder-gray-400" parentDivClassName="w-full sm:w-auto" /> setIsAdmin(s => !s)} color="green" text="Admin" state={isAdmin} /> setIsReviewer(s => !s)} color="orange" text="Reviewer" state={isReviewer} /> setIsKeyAllowed(s => !s)} color="blue" text="Key Allowed" state={isKeyAllowed} /> diff --git a/src/components/modal.tsx b/src/components/modal.tsx index ce506c40..54b533d2 100644 --- a/src/components/modal.tsx +++ b/src/components/modal.tsx @@ -10,7 +10,7 @@ export default function Modal(props: { const { show, onClose, children, className } = props; return ( -
+