Commit ·
bf704bb
1
Parent(s): 21329c2
Hide suggestions sidebar + writing score in non-write tabs
Browse files- src/index.html +6 -0
src/index.html
CHANGED
|
@@ -1289,6 +1289,12 @@
|
|
| 1289 |
if (activeTab) activeTab.classList.add('active');
|
| 1290 |
if (activeArea) activeArea.classList.remove('is-hidden');
|
| 1291 |
if (formatToolbar) formatToolbar.style.display = (tab === 'write') ? '' : 'none';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1292 |
}
|
| 1293 |
|
| 1294 |
/* ═══════════════════════════════════════════
|
|
|
|
| 1289 |
if (activeTab) activeTab.classList.add('active');
|
| 1290 |
if (activeArea) activeArea.classList.remove('is-hidden');
|
| 1291 |
if (formatToolbar) formatToolbar.style.display = (tab === 'write') ? '' : 'none';
|
| 1292 |
+
// Hide/show sidebar (suggestions + writing score) — only for write tab
|
| 1293 |
+
var sidebar = document.querySelector('.sidebar-panel.sidebar-desktop');
|
| 1294 |
+
if (sidebar) sidebar.style.display = (tab === 'write') ? '' : 'none';
|
| 1295 |
+
// Hide/show mobile suggestions trigger
|
| 1296 |
+
var mobileTrigger = document.getElementById('mobile-sheet-trigger');
|
| 1297 |
+
if (mobileTrigger) mobileTrigger.style.display = (tab === 'write') ? '' : 'none';
|
| 1298 |
}
|
| 1299 |
|
| 1300 |
/* ═══════════════════════════════════════════
|