From 0c3c866f0b91869b52afd49869aa9a4dba903ae9 Mon Sep 17 00:00:00 2001 From: Binks Riverton Date: Fri, 19 Jun 2026 14:24:56 +0800 Subject: [PATCH] fix(frontend): prevent settings modal from overflowing viewport on small screens Add max-height: calc(100vh - 40px) to .settings-modal so it never exceeds the viewport height minus overlay padding, keeping the close button always visible without requiring F11 fullscreen. --- frontend/src/views/settings/Settings.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/settings/Settings.vue b/frontend/src/views/settings/Settings.vue index 879480b2..663dad12 100644 --- a/frontend/src/views/settings/Settings.vue +++ b/frontend/src/views/settings/Settings.vue @@ -68,13 +68,10 @@
-
+
@@ -491,6 +488,7 @@ onUnmounted(() => { // and the modal shrinks to fit minus the 20px padding. max-width: 1080px; height: 780px; + max-height: calc(100vh - 40px); background: var(--td-bg-color-container); border-radius: 12px; box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);