From 41ebf2c447a4f7bff28abd0debb3ccf4904a34e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Tue, 30 Sep 2025 16:24:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=88=86=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=EF=BC=8C=E6=96=B0=E5=A2=9E=E7=B1=BB?= =?UTF-8?q?=E5=90=8D=EF=BC=8C=E5=8E=BB=E8=AE=BE=E7=BD=AE=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/globals.css | 2 +- app/signup/page.tsx | 7 ++++--- components/ChatInputBox/ChatInputBox.tsx | 2 +- components/ChatInputBox/H5PhotoStoryDrawer.tsx | 2 +- components/ChatInputBox/H5TemplateDrawer.tsx | 8 ++++---- components/SmartChatBox/InputBar.tsx | 2 +- components/layout/H5TopBar.tsx | 2 +- components/pages/login.tsx | 9 +++++---- 8 files changed, 18 insertions(+), 16 deletions(-) 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' : ''}`} />