diff --git a/public/views/space.js b/public/views/space.js index 5abd7c3..6820467 100644 --- a/public/views/space.js +++ b/public/views/space.js @@ -15,6 +15,8 @@ function pageLink(p) { return el('a', { href: '#/page/' + p.id }, p.title || '(untitled)'); } +// Static 3-level descent (root → child → grandchild); pages nested deeper than +// 3 levels are intentionally not shown. Our spaces never nest beyond that. function renderPageTree(pages, refs) { const byParent = new Map(); for (const p of pages) { @@ -74,7 +76,6 @@ export async function render(main, ctx) { const projHead = el('h3', {}, 'Projects'); renderProjects(); - mount(main, el('div', { class: 'doc-head' }, el('h1', { class: 'view-h1', style: { margin: '0' } }, space.name),