fix: радиокнопки — по центру по вертикали (v1.2.34)

This commit is contained in:
2026-08-03 09:26:58 +04:00
parent 4915d17555
commit 171342f6d0
2 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ from routes.api_scenario_defs import bp_defs as api_scenario_defs_bp
# Версия — показывается в топбаре UI. Меняется при КАЖДОМ изменении кода. # Версия — показывается в топбаре UI. Меняется при КАЖДОМ изменении кода.
# Нужна для фильтрации истории (пользователь видит только записи своей версии). # Нужна для фильтрации истории (пользователь видит только записи своей версии).
VERSION = "1.2.32" VERSION = "1.2.34"
# Flask-приложение с Jinja2-шаблонами из папки templates/ # Flask-приложение с Jinja2-шаблонами из папки templates/
app = Flask(__name__, template_folder="templates", static_folder="static") app = Flask(__name__, template_folder="templates", static_folder="static")
+26 -26
View File
@@ -58,33 +58,33 @@
<button class="sidebar-item" data-view="scenarios-view" onclick="switchView('scenarios-view')">🧪 Сценарии</button> <button class="sidebar-item" data-view="scenarios-view" onclick="switchView('scenarios-view')">🧪 Сценарии</button>
<button class="sidebar-item" data-view="logs-view" onclick="switchView('logs-view')">📜 Логи</button> <button class="sidebar-item" data-view="logs-view" onclick="switchView('logs-view')">📜 Логи</button>
</div> </div>
<div class="sidebar-bottom"> {% if polygon_enabled %}
{% if polygon_enabled %} <form method="post" style="padding:4px 12px 6px;margin-top:auto;margin-bottom:auto;">
<form method="post" style="padding:4px 12px 2px;"> <input type="hidden" name="action" value="set_mode" />
<input type="hidden" name="action" value="set_mode" /> <div style="display:flex;gap:8px;margin-bottom:4px;">
<div style="display:flex;gap:8px;margin-bottom:4px;"> <label style="font-size:10px;cursor:pointer;display:flex;align-items:center;gap:2px;color:var(--muted);">
<label style="font-size:10px;cursor:pointer;display:flex;align-items:center;gap:2px;color:var(--muted);"> <input type="radio" name="mode" value="polygon" onclick="this.form.submit()" {% if mode == 'polygon' %}checked{% endif %} /> Эмуляция
<input type="radio" name="mode" value="polygon" onclick="this.form.submit()" {% if mode == 'polygon' %}checked{% endif %} /> 🎭 </label>
</label> <label style="font-size:10px;cursor:pointer;display:flex;align-items:center;gap:2px;color:var(--muted);">
<label style="font-size:10px;cursor:pointer;display:flex;align-items:center;gap:2px;color:var(--muted);"> <input type="radio" name="mode" value="cloud" onclick="this.form.submit()" {% if mode == 'cloud' %}checked{% endif %} /> Облако
<input type="radio" name="mode" value="cloud" onclick="this.form.submit()" {% if mode == 'cloud' %}checked{% endif %} /> ☁️ </label>
</label> </div>
</div> {% if mode == 'polygon' %}
{% if mode == 'polygon' %} <div style="display:flex;gap:6px;">
<div style="display:flex;gap:6px;"> <label style="font-size:10px;cursor:pointer;color:var(--muted);">
<label style="font-size:10px;cursor:pointer;color:var(--muted);"> <input type="radio" name="polygon_stand" value="dev" onclick="this.form.submit()" {% if polygon_stand == 'dev' %}checked{% endif %} /> DEV
<input type="radio" name="polygon_stand" value="dev" onclick="this.form.submit()" {% if polygon_stand == 'dev' %}checked{% endif %} /> DEV </label>
</label> <label style="font-size:10px;cursor:pointer;color:var(--muted);">
<label style="font-size:10px;cursor:pointer;color:var(--muted);"> <input type="radio" name="polygon_stand" value="test" onclick="this.form.submit()" {% if polygon_stand == 'test' %}checked{% endif %} /> TEST
<input type="radio" name="polygon_stand" value="test" onclick="this.form.submit()" {% if polygon_stand == 'test' %}checked{% endif %} /> TEST </label>
</label> <label style="font-size:10px;cursor:pointer;color:var(--muted);">
<label style="font-size:10px;cursor:pointer;color:var(--muted);"> <input type="radio" name="polygon_stand" value="prod" onclick="this.form.submit()" {% if polygon_stand == 'prod' %}checked{% endif %} /> PROD
<input type="radio" name="polygon_stand" value="prod" onclick="this.form.submit()" {% if polygon_stand == 'prod' %}checked{% endif %} /> PROD </label>
</label> </div>
</div>
{% endif %}
</form>
{% endif %} {% endif %}
</form>
{% endif %}
<div class="sidebar-bottom">
<div style="padding:4px 12px;font-size:10px;color:var(--muted);">v{{ config.VERSION }} | {{ stand.upper().replace('_', ' ') }}</div> <div style="padding:4px 12px;font-size:10px;color:var(--muted);">v{{ config.VERSION }} | {{ stand.upper().replace('_', ' ') }}</div>
{% if token_info.email %}<div style="padding:0 12px 4px;font-size:10px;color:var(--muted);">{{ token_info.email }}</div>{% endif %} {% if token_info.email %}<div style="padding:0 12px 4px;font-size:10px;color:var(--muted);">{{ token_info.email }}</div>{% endif %}
<form method="post" class="token-row"> <form method="post" class="token-row">