Round faces: a bar as concentric arcs with a legend in the middle; larger title, gap line and face text; Read-only in the ring's gap; a round dashboard unpadded on a phone; reduced-motion ring assertion
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f5412d2f7d
commit
541dbce584
@@ -108,7 +108,8 @@ function PanelRoute() {
|
||||
// edges by the grid inset, and a second margin outside it costs the
|
||||
// scale: a dashboard drawn for this screen would come out at 95% of
|
||||
// the screen it was drawn for.
|
||||
stacked ? "overflow-y-auto p-4" : "overflow-hidden",
|
||||
// A round one fills the screen as it does a knob's, stacked or not.
|
||||
stacked && !round ? "overflow-y-auto p-4" : "overflow-hidden",
|
||||
)}
|
||||
style={root.style}
|
||||
>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useQuery } from "@tanstack/react-query"
|
||||
import { createFileRoute, redirect, useNavigate } from "@tanstack/react-router"
|
||||
import { ContextBar } from "@/components/Dashboard/ContextBar"
|
||||
import type { Dashboard } from "@/components/Dashboard/DashboardView"
|
||||
import { type Dashboard, isRound } from "@/components/Dashboard/DashboardView"
|
||||
import { useDataContext } from "@/components/Dashboard/dataContext"
|
||||
import { PanelSurface } from "@/components/Dashboard/PanelSurface"
|
||||
import { dashboardQueryOptions } from "@/components/Dashboard/queries"
|
||||
@@ -66,8 +66,10 @@ function PanelView() {
|
||||
"h-svh w-full bg-background text-foreground",
|
||||
root.className,
|
||||
// See `panel.$id`: the canvas keeps its own margin, so a second one
|
||||
// here only shrinks it.
|
||||
stacked ? "overflow-y-auto p-4" : "overflow-hidden",
|
||||
// here only shrinks it — and a round one is never stacked.
|
||||
stacked && !isRound(dashboard as Dashboard)
|
||||
? "overflow-y-auto p-4"
|
||||
: "overflow-hidden",
|
||||
)}
|
||||
style={root.style}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user