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 = `
Приложение для поиска компании. Только для лиц 18+.