fix: радиокнопки — по центру по вертикали (v1.2.34)
This commit is contained in:
+26
-26
@@ -58,33 +58,33 @@
|
||||
<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>
|
||||
</div>
|
||||
<div class="sidebar-bottom">
|
||||
{% if polygon_enabled %}
|
||||
<form method="post" style="padding:4px 12px 2px;">
|
||||
<input type="hidden" name="action" value="set_mode" />
|
||||
<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);">
|
||||
<input type="radio" name="mode" value="polygon" onclick="this.form.submit()" {% if mode == 'polygon' %}checked{% endif %} /> 🎭
|
||||
</label>
|
||||
<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 %} /> ☁️
|
||||
</label>
|
||||
</div>
|
||||
{% if mode == 'polygon' %}
|
||||
<div style="display:flex;gap:6px;">
|
||||
<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
|
||||
</label>
|
||||
<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
|
||||
</label>
|
||||
<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
|
||||
</label>
|
||||
</div>
|
||||
{% endif %}
|
||||
</form>
|
||||
{% if polygon_enabled %}
|
||||
<form method="post" style="padding:4px 12px 6px;margin-top:auto;margin-bottom:auto;">
|
||||
<input type="hidden" name="action" value="set_mode" />
|
||||
<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);">
|
||||
<input type="radio" name="mode" value="polygon" onclick="this.form.submit()" {% if mode == 'polygon' %}checked{% endif %} /> Эмуляция
|
||||
</label>
|
||||
<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 %} /> Облако
|
||||
</label>
|
||||
</div>
|
||||
{% if mode == 'polygon' %}
|
||||
<div style="display:flex;gap:6px;">
|
||||
<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
|
||||
</label>
|
||||
<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
|
||||
</label>
|
||||
<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
|
||||
</label>
|
||||
</div>
|
||||
{% 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>
|
||||
{% 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">
|
||||
|
||||
Reference in New Issue
Block a user