From 10377e9cdb57d1bb14d64cbb41d9034ad5dd1416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 31 Jul 2026 13:14:49 +0400 Subject: [PATCH] =?UTF-8?q?v1.2.8:=20Phase=200=20review=20fixes=20?= =?UTF-8?q?=E2=80=94=20snackbar.js=20include=20+=20sidebar=2072px=20+=20co?= =?UTF-8?q?llapsed=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - index.html: add snackbar.js (was missing, showSnackbar not available) - style.css: sidebar.collapsed 56→72px (match Nubes DS 4.5rem) - style.css: .sidebar.collapsed ~ .view margin-left: 72px --- site/app.py | 2 +- site/static/style.css | 3 ++- site/templates/index.html | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/site/app.py b/site/app.py index 1453307..4be2fba 100644 --- a/site/app.py +++ b/site/app.py @@ -19,7 +19,7 @@ from routes.api_scenario_run import bp_run as api_scenario_run_bp from routes.api_scenario_defs import bp_defs as api_scenario_defs_bp # Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI. -VERSION = "1.2.7" +VERSION = "1.2.8" app = Flask(__name__, template_folder="templates", static_folder="static") app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-test.ngcloud.ru/api/v1/svc") diff --git a/site/static/style.css b/site/static/style.css index e4d2b20..0a533e3 100644 --- a/site/static/style.css +++ b/site/static/style.css @@ -161,7 +161,7 @@ tr:hover td { display: flex; flex-direction: column; z-index: 100; transition: width .2s; } -.sidebar.collapsed { width: 56px; } +.sidebar.collapsed { width: 72px; } .sidebar-top { height: 80px; border-top: 4px solid var(--brand-primary); display: flex; align-items: center; padding: 0 16px; @@ -180,6 +180,7 @@ tr:hover td { /* ── Views ── */ .view { margin-left: 192px; padding: 16px 20px; min-height: 100vh; } +.sidebar.collapsed ~ .view { margin-left: 72px; } .view.hidden { display: none; } .view-header { font-size: 20px; font-weight: 700; margin-bottom: 16px; } diff --git a/site/templates/index.html b/site/templates/index.html index 7d12457..ea6193a 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -152,6 +152,7 @@ window.APP = { }; +