Revert "writing area dynamic for phones"

This reverts commit 7ddb463b9f.
This commit is contained in:
2026-04-21 11:36:47 +05:30
parent 7ddb463b9f
commit cfd24de69d
2 changed files with 1 additions and 10 deletions

View File

@@ -5,7 +5,7 @@
============================ */
#root {
width: 100%;
height: var(--vh, 100dvh);
height: 100dvh;
overflow: hidden;
display: flex;
flex-direction: column;

View File

@@ -4,15 +4,6 @@ import './index.css'
import App from './App.tsx'
import { listenForegroundMessages } from './hooks/useReminder'
// Keep #root height in sync with the visual viewport (shrinks when keyboard opens)
if (window.visualViewport) {
const setVH = () => {
document.documentElement.style.setProperty('--vh', `${window.visualViewport!.height}px`)
}
window.visualViewport.addEventListener('resize', setVH)
setVH()
}
// Apply saved theme immediately to avoid flash
const savedTheme = localStorage.getItem('gj-theme') || 'light'
document.documentElement.setAttribute('data-theme', savedTheme)