mobile: fix bug where lack of overscroll in editor allowed users to scroll document body

Hunter
Saturday, July 26th, 2025 at 1:17 AM

index.html+5 

index.html
145  			body.mobile-keyboard-open .editor-pane {
146  				height: var(--visible-height, 100vh);
147  				order: 1;
148 +				overflow: hidden;
149  			}
150  		}
151  

460  				document.body.classList.add('mobile-keyboard-open');
461  				// Set CSS custom property for the visible height
462  				document.documentElement.style.setProperty('--visible-height', `${currentHeight}px`);
463 +				// Match editor background color
464 +				document.body.style.backgroundColor = 'var(--editor-bg)';
465  			} else {
466  				document.body.classList.remove('mobile-keyboard-open');
467  				// Reset to full viewport height
468  				document.documentElement.style.setProperty('--visible-height', '100vh');
469 +				// Reset background color
470 +				document.body.style.backgroundColor = '';
471  			}
472  		}
473