Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI fix: Elements in mobile viewport being hidden outside of the screen (#2012)

Martin Peetersc5fe3eb6a22f
diff --git a/ui/component/or-app/src/index.ts b/ui/component/or-app/src/index.ts
index 42a5106f5..8d0b03625 100644
--- a/ui/component/or-app/src/index.ts
+++ b/ui/component/or-app/src/index.ts
@@ -101,7 +101,8 @@ export class OrApp<S extends AppStateKeyed> extends LitElement {
fill: ${unsafeCSS(DefaultColor3)};
font-size: 14px;
- height: 100vh;
+ height: 100vh; /* Fallback */
+ height: 100dvh; /* Stretch to dynamic viewport height */
display: flex;
flex: 1;
flex-direction: column;