chore(space-view): clarify tree depth limit + drop stray blank line

This commit is contained in:
root
2026-06-05 22:36:33 +10:00
parent 3f77f3faad
commit c9bf79575d

View File

@@ -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),