fix: set canvas-layout class on initial server render

When loading the rspace canvas directly (not via tab navigation),
#app lacked the canvas-layout class. Without it, #canvas collapses
to 0 height and pointer events for panning miss the canvas element.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-01 21:33:55 -08:00
parent 424152415a
commit 15812195f1
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ export function renderShell(opts: ShellOptions): string {
<div class="rstack-tab-row" data-theme="${theme}">
<rstack-tab-bar space="${escapeAttr(spaceSlug)}" active="" view-mode="flat"></rstack-tab-bar>
</div>
<main id="app">
<main id="app"${moduleId === "rspace" ? ' class="canvas-layout"' : ''}>
${body}
</main>