fix: stop the hearing preset card from looking selected

This commit is contained in:
Linus Rath
2026-10-31 02:06:19 +01:00
parent fe65ab528b
commit b11139887d
@@ -160,12 +160,20 @@ function MotionPreview() {
}
function HearingPreview() {
// A notification that stays until closed and a flash at the edge instead of a sound.
// The tab title lights up instead of a sound, and the notification stays until
// closed. No ring around the frame: that reads as the card being selected.
return (
<Frame className="flex-col p-1.5 ring-2 ring-inset ring-primary/70">
<Bar width="55%" strong />
<Bar width="75%" className="mt-[5px]" />
<VolumeOff className="absolute top-1 end-1 w-3.5 h-3.5 text-muted-foreground" />
<Frame className="flex-col">
<span className="flex items-end justify-between h-[14px] ps-1.5 pe-1 bg-muted/60 border-b border-border">
<span className="flex items-center w-[46px] h-[9px] rounded-t-sm bg-primary/25 px-1">
<Bar width="100%" className="bg-primary" />
</span>
<VolumeOff className="self-center w-3 h-3 text-muted-foreground" />
</span>
<span className="flex flex-col gap-[5px] p-1.5">
<Bar width="55%" strong />
<Bar width="75%" />
</span>
<span className="absolute bottom-1.5 inset-x-1.5 flex items-center gap-1 rounded-sm border border-border bg-muted px-1 py-[3px] shadow-sm">
<BellRinging className="w-3 h-3 text-primary shrink-0" stroke={2.25} />
<Bar width="100%" strong className="flex-1" />