From 9d3a0c783b8b36c1ad9d84dd08e583a009be7aa5 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 Aug 2026 18:38:43 +0000 Subject: [PATCH] Fix consent overlay: relative to mobile-frame, not body --- public/css/app.css | 3 ++- public/js/app.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/css/app.css b/public/css/app.css index 646ee70..34ac848 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -210,7 +210,8 @@ label { font-size: 13px; color: var(--text-dim); margin-bottom: 4px; display: bl .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } #consent-overlay { - position: fixed; inset: 0; + position: absolute; + top: 0; left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 200; padding: 20px; diff --git a/public/js/app.js b/public/js/app.js index b953e15..ce3b959 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -86,6 +86,9 @@ const App = { showConsent() { const ov = document.createElement('div'); ov.id = 'consent-overlay'; + // В мобильном режиме — в рамке, иначе в body + const target = document.querySelector('body.mobile-mode #mobile-frame') || document.body; + target.appendChild(ov); ov.innerHTML = `

🍻 Добро пожаловать в BuhApp

Приложение для поиска компании. Только для лиц 18+.