fix(webview): use test_red.html to isolate viewport meta tag

This commit is contained in:
MrPiglr 2026-02-11 23:45:53 -07:00
parent 6b766207e4
commit f7250d1ddc
2 changed files with 30 additions and 1 deletions

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
<title>Test Page</title>
<style>
body {
background-color: red;
color: white;
font-size: 40px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
</style>
</head>
<body>
<div>
<h1>TEST RED LOADED</h1>
<p>Testing Viewport Meta Tag</p>
</div>
<script>
console.log("Test Red loaded");
document.body.style.backgroundColor = "red";
</script>
</body>
</html>

View file

@ -70,6 +70,6 @@ public class MainActivity extends BridgeActivity {
// SWITCH TO REAL APP
// Using "file:///android_asset/public/" base path which matches the physical structure
// AND ensuring we load index.html
webView.loadUrl("file:///android_asset/public/test_complex.html");
webView.loadUrl("file:///android_asset/public/test_red.html");
}
}