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. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgBfkm4rCmtd1T4vHWjEPx
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user