fix(shell): hide subnav bar on rspace canvas page

The rspace module's outputPaths caused renderModuleSubNav to render an
unwanted "rspace | Canvases" bar across the canvas. Skip subnav for the
root rspace module since the canvas has its own chrome.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-12 12:04:34 -07:00
parent 9d34eca103
commit a8b99d3462
1 changed files with 1 additions and 0 deletions

View File

@ -1356,6 +1356,7 @@ const SUBNAV_CSS = `
/** Build the module sub-nav bar from outputPaths + subPageInfos. */
function renderModuleSubNav(moduleId: string, spaceSlug: string, modules: ModuleInfo[]): string {
if (moduleId === 'rspace') return ''; // canvas page has its own chrome
const mod = modules.find(m => m.id === moduleId);
if (!mod) return '';