- {Object.keys(folders).sort().map((f) => (
-
-
{f || '📁 root'}
- {folders[f].map((d) => (
-
- ))}
-
- ))}
- {!filtered.length &&
No documents yet. Create one — humans and agents (via API key) can both read & write here.
}
+
+
+
+ setQ(e.target.value)} />
+ {canEdit && }
+
+
+ {Object.keys(folders).sort().map((f) => (
+
+
{f || '📁 root'}
+ {folders[f].map((d) => (
+
+ ))}
+
+ ))}
+ {!filtered.length &&
No documents yet. Create one — humans and agents (via API key) can both read & write here.
}
+
diff --git a/src/Scene2D.jsx b/src/Scene2D.jsx
index 09a326d..15bc5a8 100644
--- a/src/Scene2D.jsx
+++ b/src/Scene2D.jsx
@@ -10,7 +10,7 @@ import { api } from './api.js';
const Menu = ({ size = 20 }) => ();
const X = ({ size = 20 }) => ();
-const RELEASE = '0.90.0-agenturls';
+const RELEASE = '0.91.0-docsnav';
const NAV = [
{ id: 'home', label: 'Tavern' },
diff --git a/src/styles.css b/src/styles.css
index 14c0318..61a84d6 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -837,6 +837,12 @@ button {
.docs-side-top { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid #1b2536; }
.docs-side-top input { flex: 1; padding: 8px; border-radius: 7px; background: #0a0f1a; border: 1px solid #233044; color: #eaf2ff; }
.docs-tree { overflow: auto; padding: 8px; }
+/* docs nav: collapsible on mobile, transparent (display:contents) on desktop (0.91) */
+.docs-nav-toggle { display: none; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #0c111c; border: none; border-bottom: 1px solid #1b2536; color: #eaf2ff; font-family: inherit; font-size: 14px; cursor: pointer; text-align: left; }
+.docs-nav-cur { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.docs-nav-chev { color: #8a78b4; flex: 0 0 auto; font-size: 12px; transition: transform 0.18s; }
+.docs-nav-toggle[aria-expanded="true"] .docs-nav-chev { transform: rotate(180deg); }
+.docs-side-body { display: contents; }
.docs-folder-name { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #5f6e88; margin: 10px 6px 4px; }
.docs-item { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 7px; color: #c3d0e6; cursor: pointer; font-size: 13px; }
.docs-item:hover { background: #141d2e; }
@@ -1484,7 +1490,11 @@ button {
/* docs responsive — stack on mobile so the prose gets full width (0.77) */
@media (max-width: 760px) {
.docs { flex-direction: column; }
- .docs-side { width: 100%; max-height: 210px; overflow-y: auto; border-right: none; border-bottom: 2px solid #1b2536; }
+ .docs-side { width: 100%; overflow: visible; border-right: none; border-bottom: 2px solid #1b2536; }
+ .docs-nav-toggle { display: flex; }
+ .docs-side-body { display: none; }
+ .docs-side-body.open { display: block; border-bottom: 1px solid #1b2536; }
+ .docs-side-body.open .docs-tree { max-height: 58vh; overflow-y: auto; }
.docs-main { padding: 20px 16px; }
}