v1.2.10: rename Верстак→Консоль, fix logs view
- Sidebar: Верстак → 🖥 Консоль - View header: Верстак → Консоль - Log view: show real log content (synced with log panel) - Dark bottom log panel: hidden on all non-log views, left offset 192px (sidebar width) - views.js: switchView handles log view sync
This commit is contained in:
+11
-2
@@ -15,8 +15,17 @@ function switchView(viewId) {
|
||||
if (viewId === 'scenarios-view' && typeof toggleScenario === 'function') {
|
||||
if (!scenarioOpen) toggleScenario();
|
||||
}
|
||||
if (viewId === 'logs-view' && typeof toggleLog === 'function') {
|
||||
if (viewId === 'logs-view') {
|
||||
// Показать лог в виде, скрыть нижнюю панель
|
||||
const lp = document.getElementById('log-panel');
|
||||
if (lp && lp.style.display === 'none') toggleLog();
|
||||
const lvc = document.getElementById('log-view-content');
|
||||
if (lp && lvc) {
|
||||
lvc.innerHTML = lp.innerHTML || '<span style="color:#888;">Логи загружаются...</span>';
|
||||
lp.style.display = 'none';
|
||||
}
|
||||
} else {
|
||||
// Скрыть нижнюю панель на всех видах кроме логов
|
||||
const lp = document.getElementById('log-panel');
|
||||
if (lp) lp.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user