This commit is contained in:
2026-05-10 22:05:28 +02:00
parent cefca66094
commit 9050114508
3 changed files with 18 additions and 4 deletions

View File

@@ -411,10 +411,16 @@ nav {
visibility: hidden;
}
/* Prevent background scrolling while a modal is open */
body.modal-open {
overflow: hidden;
touch-action: none;
}
.close {
position: absolute;
top: 10px;
right: 10px;
position: fixed;
top: 12px;
right: 12px;
font-size: 2rem;
background-color: var(--nav-btn-bg);
border: 1px solid var(--nav-btn-border);
@@ -444,6 +450,8 @@ nav {
position: relative;
color: var(--text-color);
transition: background-color 0.25s ease, color 0.25s ease;
max-height: calc(100vh - 48px);
overflow: auto;
}
/* Make images inside modals larger while constraining to viewport */