disable zoom

This commit is contained in:
EthanShoeDev
2025-09-18 00:44:56 -04:00
parent 85c5b6eb3f
commit 346f16dc17
4 changed files with 35 additions and 1 deletions

View File

@@ -68,7 +68,8 @@
"react-native-web": "~0.21.1", "react-native-web": "~0.21.1",
"react-native-webview": "13.15.0", "react-native-webview": "13.15.0",
"react-native-worklets": "~0.5.1", "react-native-worklets": "~0.5.1",
"zod": "^4.1.9" "zod": "^4.1.9",
"zustand": "^5.0.8"
}, },
"devDependencies": { "devDependencies": {
"@epic-web/config": "^1.21.3", "@epic-web/config": "^1.21.3",

View File

@@ -2,6 +2,10 @@
<html style="margin: 0; padding: 0; width: 100vw; height: 100vh"> <html style="margin: 0; padding: 0; width: 100vw; height: 100vh">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
/>
</head> </head>
<body style="margin: 0; padding: 0; width: 100vw; height: 100vh"> <body style="margin: 0; padding: 0; width: 100vw; height: 100vh">
<div <div

View File

@@ -185,6 +185,8 @@ export function XtermJsWebView({
<WebView <WebView
ref={webRef} ref={webRef}
originWhitelist={['*']} originWhitelist={['*']}
scalesPageToFit={false}
contentMode="mobile"
source={{ html: htmlString }} source={{ html: htmlString }}
onMessage={(e) => { onMessage={(e) => {
try { try {

27
pnpm-lock.yaml generated
View File

@@ -172,6 +172,9 @@ importers:
zod: zod:
specifier: ^4.1.9 specifier: ^4.1.9
version: 4.1.9 version: 4.1.9
zustand:
specifier: ^5.0.8
version: 5.0.8(@types/react@19.1.12)(react@19.1.0)(use-sync-external-store@1.5.0(react@19.1.0))
devDependencies: devDependencies:
'@epic-web/config': '@epic-web/config':
specifier: ^1.21.3 specifier: ^1.21.3
@@ -9131,6 +9134,24 @@ packages:
zod@4.1.9: zod@4.1.9:
resolution: {integrity: sha512-HI32jTq0AUAC125z30E8bQNz0RQ+9Uc+4J7V97gLYjZVKRjeydPgGt6dvQzFrav7MYOUGFqqOGiHpA/fdbd0cQ==} resolution: {integrity: sha512-HI32jTq0AUAC125z30E8bQNz0RQ+9Uc+4J7V97gLYjZVKRjeydPgGt6dvQzFrav7MYOUGFqqOGiHpA/fdbd0cQ==}
zustand@5.0.8:
resolution: {integrity: sha512-gyPKpIaxY9XcO2vSMrLbiER7QMAMGOQZVRdJ6Zi782jkbzZygq5GI9nG8g+sMgitRtndwaBSl7uiqC49o1SSiw==}
engines: {node: '>=12.20.0'}
peerDependencies:
'@types/react': '>=18.0.0'
immer: '>=9.0.6'
react: '>=18.0.0'
use-sync-external-store: '>=1.2.0'
peerDependenciesMeta:
'@types/react':
optional: true
immer:
optional: true
react:
optional: true
use-sync-external-store:
optional: true
zwitch@2.0.4: zwitch@2.0.4:
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
@@ -19801,4 +19822,10 @@ snapshots:
zod@4.1.9: {} zod@4.1.9: {}
zustand@5.0.8(@types/react@19.1.12)(react@19.1.0)(use-sync-external-store@1.5.0(react@19.1.0)):
optionalDependencies:
'@types/react': 19.1.12
react: 19.1.0
use-sync-external-store: 1.5.0(react@19.1.0)
zwitch@2.0.4: {} zwitch@2.0.4: {}