From 57f213584816b0644c13070cc71c9e16f9015c74 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Thu, 19 Oct 2023 10:19:33 +0100 Subject: [PATCH] Improved the responsiveness of the application for tablet as well --- src/components/High/Layout.tsx | 2 +- src/components/Low/Input.tsx | 6 ++++-- src/components/Sidebar.tsx | 18 +++++++++++++----- src/pages/(admin)/BatchCodeGenerator.tsx | 12 ++++++------ src/pages/(admin)/CodeGenerator.tsx | 12 ++++++------ src/pages/(admin)/ExamLoader.tsx | 11 +++++++---- src/pages/admin.tsx | 2 +- src/pages/record.tsx | 19 ++++++++++--------- 8 files changed, 48 insertions(+), 34 deletions(-) diff --git a/src/components/High/Layout.tsx b/src/components/High/Layout.tsx index d2925f9d..865deadd 100644 --- a/src/components/High/Layout.tsx +++ b/src/components/High/Layout.tsx @@ -37,7 +37,7 @@ export default function Layout({user, children, className, navDisabled = false, />
{children} diff --git a/src/components/Low/Input.tsx b/src/components/Low/Input.tsx index 54860157..b9020d39 100644 --- a/src/components/Low/Input.tsx +++ b/src/components/Low/Input.tsx @@ -1,3 +1,4 @@ +import clsx from "clsx"; import {useState} from "react"; interface Props { @@ -6,12 +7,13 @@ interface Props { label?: string; placeholder?: string; defaultValue?: string; + className?: string; disabled?: boolean; name: string; onChange: (value: string) => void; } -export default function Input({type, label, placeholder, name, required = false, defaultValue, disabled = false, onChange}: Props) { +export default function Input({type, label, placeholder, name, required = false, defaultValue, className, disabled = false, onChange}: Props) { const [showPassword, setShowPassword] = useState(false); if (type === "password") { @@ -44,7 +46,7 @@ export default function Input({type, label, placeholder, name, required = false, } return ( -
+
{label && (