Merge remote-tracking branch 'origin/main'
Docs / docs (push) Successful in 28s
Playwright Tests / test-playwright (1, 2) (push) Failing after 4m9s
Playwright Tests / test-playwright (2, 2) (push) Successful in 2m7s
pre-commit / pre-commit (push) Failing after 2m54s
Test Backend / test-backend (3.12) (push) Failing after 3m57s
Playwright Tests / merge-reports (push) Canceled after 0s
Test Backend / test-backend (3.14) (push) Canceled after 2m31s
Compose Smoke Test / test-compose (push) Canceled after 0s
Docs / docs (push) Successful in 28s
Playwright Tests / test-playwright (1, 2) (push) Failing after 4m9s
Playwright Tests / test-playwright (2, 2) (push) Successful in 2m7s
pre-commit / pre-commit (push) Failing after 2m54s
Test Backend / test-backend (3.12) (push) Failing after 3m57s
Playwright Tests / merge-reports (push) Canceled after 0s
Test Backend / test-backend (3.14) (push) Canceled after 2m31s
Compose Smoke Test / test-compose (push) Canceled after 0s
This commit is contained in:
@@ -13,7 +13,7 @@ import { flushSync } from "react-dom"
|
||||
import { ErrorBoundary } from "react-error-boundary"
|
||||
import type { WidgetDef } from "@/client"
|
||||
import { slotsFor } from "@/components/Common/UplotChart"
|
||||
import { fadeIn } from "@/lib/motion"
|
||||
import { duration, fadeIn } from "@/lib/motion"
|
||||
import { useShortcuts } from "@/lib/shortcuts"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { useClock } from "./ClockWidget"
|
||||
@@ -476,7 +476,11 @@ export function RoundView({
|
||||
|
||||
useEffect(() => {
|
||||
if (!announce) return
|
||||
const timer = setTimeout(() => setAnnounce(false), ANNOUNCE_MS)
|
||||
// Held for its whole time once faded in, as the docs and openpanel count it.
|
||||
const timer = setTimeout(
|
||||
() => setAnnounce(false),
|
||||
duration.base * 1000 + ANNOUNCE_MS,
|
||||
)
|
||||
return () => clearTimeout(timer)
|
||||
}, [announce])
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ export const turnsPage = (by: number, speed: number, size: number) =>
|
||||
Math.sign(speed) === Math.sign(by) &&
|
||||
Math.abs(speed) >= PAGE_FLING)
|
||||
|
||||
/** How long a change of dashboard shows which one it landed on. */
|
||||
/** How long a change of dashboard holds its name, once faded in. */
|
||||
export const ANNOUNCE_MS = 1000
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user