Skip to content

Commit

Usage: a meter's note is the site's tooltip, caught by the no-native-title test

syntaqxcommitted Parent2ae0bf4Browse files
1 file+6−10/1 viewed
+6−1
3131 } from "../lib/usage";
3232 import { cn } from "../lib/cn";
3333 import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "./ui/dropdown-menu";
34+import { Hint } from "./ui/hint";
3435 import { Skeleton } from "./ui/skeleton";
3536
3637 const SELECT =
485486 <span className="size-2 shrink-0 rounded-sm" style={{ background: color }} />
486487 <span className="min-w-0">
487488 <span className="block truncate">{meter.label}</span>
488− {meter.note && <span className="block truncate text-[0.6875rem] text-faint" title={meter.note}>{meter.note}</span>}
489+ {meter.note && (
490+ <Hint label={meter.note}>
491+ <span className="block truncate text-[0.6875rem] text-faint">{meter.note}</span>
492+ </Hint>
493+ )}
489494 </span>
490495 {parts.length > 0 && <ChevronDown size={13} className="shrink-0 text-faint transition-transform group-open:rotate-180" />}
491496 </span>