Skip to content

Commit

Permalink
fix: zoom error
Browse files Browse the repository at this point in the history
  • Loading branch information
kcwww committed Nov 18, 2024
1 parent da6b9e9 commit 58f88dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 8 additions & 1 deletion app/(protected)/nickname/_components/NicknameForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,14 @@ const NicknameForm = ({ user }: { user: sessionUser }) => {
사용하실 이름을 입력해주세요
</FormLabel>
<FormControl>
<Input placeholder="Nickname" {...field} />
<Input
onFocus={(e) => {
// no zoom on mobile
e.target.style.fontSize = '16px';
}}
placeholder="Nickname"
{...field}
/>
</FormControl>
<FormDescription>
이 이름은 다른 사용자들에게 보여지는 이름이 됩니다.
Expand Down
7 changes: 4 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Metadata } from 'next';
import Head from 'next/head';
import { Jua } from 'next/font/google';
import './globals.css';

Expand All @@ -24,12 +25,12 @@ export default function RootLayout({
}>) {
return (
<html lang="ko">
<head>
<Head>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
content="width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1, minimum-scale=1"
/>
</head>
</Head>

<body className={cn(inter.className, 'min-h-svh bg-primary')}>
<QueryProvider>
Expand Down

0 comments on commit 58f88dd

Please sign in to comment.