mirror of
https://github.com/luc-github/ESP3D-WEBUI.git
synced 2026-02-20 01:11:21 +01:00
Fix: Navbar clipping outside of viewport on mobile (#433)
This commit is contained in:
@@ -102,6 +102,15 @@ const Navbar = () => {
|
||||
.click()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
auto-scroll textarea into view if mobile keyboard is blocking textarea to prevent
|
||||
page resize and navbar from snapping out of viewport due to using fixed heights
|
||||
*/
|
||||
window.visualViewport?.addEventListener("resize", () => {
|
||||
window.scrollTo(0, 0);
|
||||
});
|
||||
|
||||
const disconnectNow = () => {
|
||||
const formData = new FormData()
|
||||
formData.append("DISCONNECT", "YES")
|
||||
|
||||
Reference in New Issue
Block a user