From cb5077cfcc7aa64dad57132bc4bb2f48cc31f067 Mon Sep 17 00:00:00 2001 From: DJKnaeckebrot Date: Mon, 30 Dec 2024 10:54:47 +0100 Subject: [PATCH 1/2] style(2fa): make pin input centered and make boarder more white to make it more visible --- apps/dokploy/components/auth/login-2fa.tsx | 28 ++++++++++++++-------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/apps/dokploy/components/auth/login-2fa.tsx b/apps/dokploy/components/auth/login-2fa.tsx index dcb004f1..f3d001f8 100644 --- a/apps/dokploy/components/auth/login-2fa.tsx +++ b/apps/dokploy/components/auth/login-2fa.tsx @@ -13,10 +13,12 @@ import { CardTitle } from "@/components/ui/card"; import { InputOTP, InputOTPGroup, + InputOTPSeparator, InputOTPSlot, } from "@/components/ui/input-otp"; import { api } from "@/utils/api"; import { zodResolver } from "@hookform/resolvers/zod"; +import { REGEXP_ONLY_DIGITS } from "input-otp"; import { AlertTriangle } from "lucide-react"; import { useRouter } from "next/router"; import { useEffect } from "react"; @@ -96,16 +98,22 @@ export const Login2FA = ({ authId }: Props) => { Pin - - - - - - - - - - +
+ + + + + + + + + + +
Please enter the 6 digits code provided by your authenticator From b93d26f9370ae3ba8a3ad1464d7b9ab61e490e72 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Wed, 1 Jan 2025 18:53:30 -0600 Subject: [PATCH 2/2] refactor: use shadcn ui classes --- apps/dokploy/components/auth/login-2fa.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/dokploy/components/auth/login-2fa.tsx b/apps/dokploy/components/auth/login-2fa.tsx index f3d001f8..836c3b46 100644 --- a/apps/dokploy/components/auth/login-2fa.tsx +++ b/apps/dokploy/components/auth/login-2fa.tsx @@ -105,12 +105,12 @@ export const Login2FA = ({ authId }: Props) => { pattern={REGEXP_ONLY_DIGITS} > - - - - - - + + + + + +