commit fdc9e86e253033dfd301d3c8d9910f3e8dae59ae
parent 7de854ed4eeb00cc1338d901391a8028b2ba899f
Author: Hunter
Date: Sat, 26 Jul 2025 01:17:00 -0400
mobile: fix bug where lack of overscroll in editor allowed users to scroll document body
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/index.html b/index.html
@@ -145,6 +145,7 @@
body.mobile-keyboard-open .editor-pane {
height: var(--visible-height, 100vh);
order: 1;
+ overflow: hidden;
}
}
@@ -459,10 +460,14 @@
document.body.classList.add('mobile-keyboard-open');
// Set CSS custom property for the visible height
document.documentElement.style.setProperty('--visible-height', `${currentHeight}px`);
+ // Match editor background color
+ document.body.style.backgroundColor = 'var(--editor-bg)';
} else {
document.body.classList.remove('mobile-keyboard-open');
// Reset to full viewport height
document.documentElement.style.setProperty('--visible-height', '100vh');
+ // Reset background color
+ document.body.style.backgroundColor = '';
}
}