diff --git a/index.html b/index.html
index 817f0309f..5f8cd4bef 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,7 @@
@@ -20,7 +20,8 @@
background: var(--color-background, #1e1e1e);
}
#root {
- height: 100vh;
+ height: 100vh; /* fallback for older browsers */
+ height: 100dvh;
overflow: hidden;
}
diff --git a/src/browser/components/VimTextArea.tsx b/src/browser/components/VimTextArea.tsx
index fc2664ac3..d5798ea1d 100644
--- a/src/browser/components/VimTextArea.tsx
+++ b/src/browser/components/VimTextArea.tsx
@@ -257,6 +257,8 @@ export const VimTextArea = React.forwardRef