Spaces:
Running
Running
Commit ·
7700f2f
1
Parent(s): b4eccb8
fix(ux): collapse mode-section by default — task-tiles is now primary entry
Browse filesUser reported: '14 modes appeared in two places' (in task-tiles AND in mode-section
tab strip below). After wrapMainSectionsAsFoldable() runs at startup, explicitly
set the mode-section <details> to open=false so the legacy 14-tab strip is
collapsed by default. Power users can still expand it with one click.
This makes task-tiles the unambiguous primary entry point (5 tiles by intent),
with the full 14-mode strip as opt-in backup.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- js/main.js +6 -0
js/main.js
CHANGED
|
@@ -181,6 +181,12 @@ function wrapMainSectionsAsFoldable() {
|
|
| 181 |
}
|
| 182 |
wrapMainSectionsAsFoldable();
|
| 183 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
// ════════════════════════════════════════════════════════════════════
|
| 185 |
// Mode toggle
|
| 186 |
// ════════════════════════════════════════════════════════════════════
|
|
|
|
| 181 |
}
|
| 182 |
wrapMainSectionsAsFoldable();
|
| 183 |
|
| 184 |
+
// v0.7.7 — task-tiles is the primary entry point; collapse the legacy 14-tab
|
| 185 |
+
// strip by default so users don't see duplicated navigation. Power users can
|
| 186 |
+
// still expand it with one click.
|
| 187 |
+
const __modeDetails = document.querySelector("#mode-section > details.main-panel");
|
| 188 |
+
if (__modeDetails) __modeDetails.open = false;
|
| 189 |
+
|
| 190 |
// ════════════════════════════════════════════════════════════════════
|
| 191 |
// Mode toggle
|
| 192 |
// ════════════════════════════════════════════════════════════════════
|