Fix consent overlay: relative to mobile-frame, not body

This commit is contained in:
root 2026-08-20 18:38:43 +00:00
parent cb05669c7c
commit 9d3a0c783b
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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 = `
<h1>🍻 Добро пожаловать в BuhApp</h1>
<p class="sub">Приложение для поиска компании. Только для лиц 18+.</p>