From c8c2578e44135e76077f7ea04f030588a037ac5b Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sun, 14 Dec 2025 15:20:17 +0330 Subject: [PATCH] fix zoom --- src/app/globals.css | 10 ++++++++++ src/app/layout.tsx | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/src/app/globals.css b/src/app/globals.css index e98ad7f..7ad7840 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -108,6 +108,16 @@ input:autofill { transition: background-color 10000s ease-in-out 0s; } +/* جلوگیری از زوم خودکار iOS هنگام فوکوس روی input */ +/* iOS به طور خودکار صفحه را زوم می‌کند اگر font-size کمتر از 16px باشد */ +@supports (-webkit-touch-callout: none) { + input:not([type="password"]), + textarea, + select { + font-size: 16px !important; + } +} + .box-shadow-normal { box-shadow: 0px 2px 16px 0px #00000014; height: fit-content; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 584b0ab..f25724e 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -15,6 +15,11 @@ export const metadata: Metadata = { export const viewport: Viewport = { themeColor: '#F4F5F9', + width: 'device-width', + initialScale: 1, + maximumScale: 1, + minimumScale: 1, + userScalable: false, } const i18nNamespaces = ['settings', 'common', 'menu', 'orders', 'auth', "rating", "chat", "notifications", 'parallels'];