v1.2.8: Phase 0 review fixes — snackbar.js include + sidebar 72px + collapsed view
- 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
This commit is contained in:
+1
-1
@@ -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
|
from routes.api_scenario_defs import bp_defs as api_scenario_defs_bp
|
||||||
|
|
||||||
# Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI.
|
# Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI.
|
||||||
VERSION = "1.2.7"
|
VERSION = "1.2.8"
|
||||||
|
|
||||||
app = Flask(__name__, template_folder="templates", static_folder="static")
|
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")
|
app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-test.ngcloud.ru/api/v1/svc")
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ tr:hover td {
|
|||||||
display: flex; flex-direction: column; z-index: 100;
|
display: flex; flex-direction: column; z-index: 100;
|
||||||
transition: width .2s;
|
transition: width .2s;
|
||||||
}
|
}
|
||||||
.sidebar.collapsed { width: 56px; }
|
.sidebar.collapsed { width: 72px; }
|
||||||
.sidebar-top {
|
.sidebar-top {
|
||||||
height: 80px; border-top: 4px solid var(--brand-primary);
|
height: 80px; border-top: 4px solid var(--brand-primary);
|
||||||
display: flex; align-items: center; padding: 0 16px;
|
display: flex; align-items: center; padding: 0 16px;
|
||||||
@@ -180,6 +180,7 @@ tr:hover td {
|
|||||||
|
|
||||||
/* ── Views ── */
|
/* ── Views ── */
|
||||||
.view { margin-left: 192px; padding: 16px 20px; min-height: 100vh; }
|
.view { margin-left: 192px; padding: 16px 20px; min-height: 100vh; }
|
||||||
|
.sidebar.collapsed ~ .view { margin-left: 72px; }
|
||||||
.view.hidden { display: none; }
|
.view.hidden { display: none; }
|
||||||
.view-header { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
|
.view-header { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
|
||||||
|
|
||||||
|
|||||||
@@ -152,6 +152,7 @@ window.APP = {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script src="{{ url_for('static', filename='js/icons.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/icons.js') }}"></script>
|
||||||
|
<script src="{{ url_for('static', filename='js/snackbar.js') }}"></script>
|
||||||
<script src="{{ url_for('static', filename='js/utils.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/utils.js') }}"></script>
|
||||||
<script src="{{ url_for('static', filename='js/params-render.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/params-render.js') }}"></script>
|
||||||
<script src="{{ url_for('static', filename='js/instances.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/instances.js') }}"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user