Draw the look's ground behind a stacked dashboard

A phone stacks a dashboard instead of drawing it on a canvas, and the canvas
was what carried the ground, so a stack had only the palette's colour. The
panel and the editor now draw the look's ground behind the stack, held still
while it scrolls. Glass's drift stops under reduced motion as it does on a
canvas.
This commit is contained in:
2026-10-15 16:08:53 +02:00
parent 14e651d5eb
commit aa64251de0
3 changed files with 13 additions and 3 deletions
@@ -42,6 +42,7 @@ import { handleError } from "@/utils"
import { DashboardPalette } from "./DashboardPalette"
import {
areaOf,
CanvasGround,
CanvasSurface,
canvasOf,
columnsOf,
@@ -657,7 +658,8 @@ export function DashboardEditor({
)}
style={root.style}
>
<div className={cn("h-full overflow-y-auto", rail && "pb-20")}>
<CanvasGround dashboard={draft} />
<div className={cn("relative h-full overflow-y-auto", rail && "pb-20")}>
<DashboardView
dashboard={draft}
stacked