From be8d1967340038064cd9717938a2d4e68d4a026e Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 Aug 2026 17:58:30 +0000 Subject: [PATCH] Fix mobile frame: tabbar inside frame, button visible, proper layout --- public/css/app.css | 37 ++++++++++++++++++++++++------------- public/index.html | 38 +++++++++++++++++++------------------- 2 files changed, 43 insertions(+), 32 deletions(-) diff --git a/public/css/app.css b/public/css/app.css index 5ee392e..646ee70 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -42,18 +42,21 @@ body { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; + flex: 1; +} + +body.mobile-mode #app { + height: auto; + min-height: 0; } #tabbar { - position: fixed; - bottom: 0; - left: 0; - right: 0; - height: calc(60px + env(safe-area-inset-bottom)); + height: 60px; padding-bottom: env(safe-area-inset-bottom); background: var(--bg-elev); border-top: 1px solid var(--border); display: flex; + flex-shrink: 0; z-index: 100; } .tab { @@ -242,40 +245,48 @@ label { font-size: 13px; color: var(--text-dim); margin-bottom: 4px; display: bl /* Mobile emulator — на десктопе показываем как на мобиле */ body.mobile-mode { - display: flex; - justify-content: center; - align-items: flex-start; - min-height: 100vh; background: #1a1a1f; + padding: 16px; } body.mobile-mode #mobile-frame { width: 390px; max-width: 100vw; - height: 100vh; + height: calc(100vh - 32px); + margin: 0 auto; background: var(--bg); - position: relative; + border-radius: 16px; overflow: hidden; box-shadow: 0 0 40px rgba(0,0,0,0.4); display: flex; flex-direction: column; + position: relative; } body.mobile-mode #app { - height: calc(100vh - 60px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); flex: 1; + height: auto; + overflow-y: auto; } body.mobile-mode #tabbar { position: relative; width: 390px; max-width: 100vw; + margin: 0 auto; + border-radius: 0 0 16px 16px; } @media (max-width: 600px) { - body.mobile-mode #mobile-frame, + body.mobile-mode { padding: 0; } + body.mobile-mode #mobile-frame { + width: 100vw; + height: 100vh; + border-radius: 0; + } body.mobile-mode #tabbar { width: 100vw; + border-radius: 0; } } diff --git a/public/index.html b/public/index.html index 5d87eaf..82f72a1 100644 --- a/public/index.html +++ b/public/index.html @@ -14,26 +14,26 @@
+
-