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

This commit is contained in:
Melvin Strobl
2026-10-14 16:52:46 +02:00
parent bae4b15505
commit c294789d85
9 changed files with 308 additions and 33 deletions
+2 -1
View File
@@ -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}
>
+5 -3
View File
@@ -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}
>