diff --git a/app/globals.css b/app/globals.css index 0e918bf..32576a1 100644 --- a/app/globals.css +++ b/app/globals.css @@ -307,6 +307,6 @@ body { } } -textarea, input { +.mobile-textarea, .mobile-input { font-size: 16px !important; } \ No newline at end of file diff --git a/app/signup/page.tsx b/app/signup/page.tsx index 33808c6..157a35d 100644 --- a/app/signup/page.tsx +++ b/app/signup/page.tsx @@ -9,6 +9,7 @@ import { GoogleLoginButton } from "@/components/ui/google-login-button"; import { Eye, EyeOff, Mail, PartyPopper } from "lucide-react"; import { isGoogleLoginEnabled } from "@/lib/server-config"; import { fetchSettingByCode } from "@/api/serversetting"; +import { useDeviceType } from "@/hooks/useDeviceType"; export default function SignupPage() { const [name, setName] = useState(""); @@ -31,7 +32,7 @@ export default function SignupPage() { const [showGoogleLogin, setShowGoogleLogin] = useState(false); const [showRedirectModal, setShowRedirectModal] = useState(false); const router = useRouter(); - + const { isMobile } = useDeviceType(); // Handle scroll indicator for small screens and load SSO config React.useEffect(() => { try { @@ -448,7 +449,7 @@ export default function SignupPage() { onFocus={() => setEmailFocused(true)} onBlur={() => setEmailFocused(false)} required - className="w-full px-4 py-3 rounded-lg bg-black/30 border border-white/20 text-white placeholder-gray-400 focus:outline-none focus:ring-1 focus:border-custom-blue/80" + className={`w-full px-4 py-3 rounded-lg bg-black/30 border border-white/20 text-white placeholder-gray-400 focus:outline-none focus:ring-1 focus:border-custom-blue/80 ${isMobile ? 'mobile-input' : ''}`} /> @@ -473,7 +474,7 @@ export default function SignupPage() { required className={`w-full px-4 py-3 pr-12 rounded-lg bg-black/30 border border-white/20 text-white placeholder-gray-400 focus:outline-none focus:ring-1 focus:border-custom-blue/80 ${ passwordError ? "border-red-500/50" : "border-white/20" - }`} + } ${isMobile ? 'mobile-input' : ''}`} />