Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

Commit 7299e47

Browse files
committed
Update ReactController.swift
1 parent 13309e6 commit 7299e47

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Sources/ReactController/ReactController.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,20 @@ extension ReactController {
106106
\(meta.joined(separator: "\n"))
107107
<style>
108108
html, body {
109-
height: 100vh;
109+
height: 100%;
110110
}
111111
#\(self.root) {
112112
display: flex;
113-
position: fixed;
114113
height: 100%;
115114
}
115+
@media (orientation: landscape) {
116+
html, body {
117+
height: 100vh;
118+
}
119+
#\(self.root) {
120+
position: fixed;
121+
}
122+
}
116123
</style>
117124
\(css)
118125
</head>

0 commit comments

Comments
 (0)