mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-17 22:07:20 +00:00
fix(webview): use test_red.html to isolate viewport meta tag
This commit is contained in:
parent
6b766207e4
commit
f7250d1ddc
2 changed files with 30 additions and 1 deletions
29
android/app/src/main/assets/public/test_red.html
Normal file
29
android/app/src/main/assets/public/test_red.html
Normal 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>
|
||||
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue