[PWA-2] fix: pwa input zoom effect (#5402)
* fix: pwa input zoom effect * fix: pwa input zoom effect * fix: pwa input zoom effect * fix: pwa sticky issue comment * chore: code refactor * chore: code refactor
This commit is contained in:
parent
9065932c86
commit
bd3f117545
1 changed files with 10 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { Metadata } from "next";
|
import { Metadata, Viewport } from "next";
|
||||||
import Script from "next/script";
|
import Script from "next/script";
|
||||||
// styles
|
// styles
|
||||||
import "@/styles/globals.css";
|
import "@/styles/globals.css";
|
||||||
|
|
@ -28,6 +28,15 @@ export const metadata: Metadata = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const viewport: Viewport = {
|
||||||
|
minimumScale: 1,
|
||||||
|
initialScale: 1,
|
||||||
|
maximumScale: 1,
|
||||||
|
userScalable: false,
|
||||||
|
width: "device-width",
|
||||||
|
viewportFit: "cover",
|
||||||
|
};
|
||||||
|
|
||||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||||
const isSessionRecorderEnabled = parseInt(process.env.NEXT_PUBLIC_ENABLE_SESSION_RECORDER || "0");
|
const isSessionRecorderEnabled = parseInt(process.env.NEXT_PUBLIC_ENABLE_SESSION_RECORDER || "0");
|
||||||
|
|
||||||
|
|
@ -51,10 +60,6 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/icons/icon-180x180.png" />
|
<link rel="apple-touch-icon" sizes="180x180" href="/icons/icon-180x180.png" />
|
||||||
<link rel="apple-touch-icon" sizes="512x512" href="/icons/icon-512x512.png" />
|
<link rel="apple-touch-icon" sizes="512x512" href="/icons/icon-512x512.png" />
|
||||||
<link rel="manifest" href="/manifest.json" />
|
<link rel="manifest" href="/manifest.json" />
|
||||||
<meta
|
|
||||||
name="viewport"
|
|
||||||
content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no, user-scalable=no, viewport-fit=cover"
|
|
||||||
/>
|
|
||||||
{/* preloading */}
|
{/* preloading */}
|
||||||
<link rel="preload" href={`${API_BASE_URL}/api/instances/`} as="fetch" crossOrigin="use-credentials" />
|
<link rel="preload" href={`${API_BASE_URL}/api/instances/`} as="fetch" crossOrigin="use-credentials" />
|
||||||
<link rel="preload" href={`${API_BASE_URL}/api/users/me/ `} as="fetch" crossOrigin="use-credentials" />
|
<link rel="preload" href={`${API_BASE_URL}/api/users/me/ `} as="fetch" crossOrigin="use-credentials" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue