From cfb125784d728f5d8a31cbd0e0637c5344067961 Mon Sep 17 00:00:00 2001 From: core Date: Mon, 1 Jun 2026 23:59:07 +0500 Subject: [PATCH] mobile: fix both modes showing at once (hidden view not hidden) [hidden] sets display:none, but .m-view{display:flex} has equal specificity and comes later, so it overrode the hidden attribute and both #view-live and #view-arch rendered together. Add .m-view[hidden]{display:none} so the inactive mode is actually hidden. VERSION 0.0.152 -> 0.0.153 Co-Authored-By: Claude Opus 4.8 (1M context) --- VERSION | 2 +- frontend/static/mobile.css | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 7117656..ea34848 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.152 +0.0.153 diff --git a/frontend/static/mobile.css b/frontend/static/mobile.css index 03357ef..a13de06 100644 --- a/frontend/static/mobile.css +++ b/frontend/static/mobile.css @@ -45,6 +45,9 @@ html, body { .m-nav.active { color: #fff; background: #1d2230; border-left-color: #c0392b; } .m-view { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; } +/* hidden-атрибут должен реально скрывать режим: иначе display:flex (та же специфичность, + но идёт позже) перебивает [hidden]{display:none} и оба режима видны разом */ +.m-view[hidden] { display: none; } .m-bar { flex: none; display: flex; gap: 8px; padding: 8px;