Fix spell correction prompt showing (#483)

This commit is contained in:
Gregory Schier
2026-06-29 08:54:01 -07:00
committed by GitHub
parent 1de0a5942c
commit 55d0066efd
7 changed files with 19 additions and 7 deletions
@@ -55,6 +55,8 @@ export function KeyValueRow({
const textToCopy =
copyText ??
(typeof children === "string" || typeof children === "number" ? `${children}` : null);
const copyTitle =
typeof label === "string" || typeof label === "number" ? `Copy ${label}` : "Copy value";
const resolvedRightSlot =
rightSlot ??
(enableCopy && textToCopy != null ? (
@@ -62,7 +64,7 @@ export function KeyValueRow({
text={textToCopy}
className="text-text-subtle"
size="2xs"
title={`Copy ${label}`}
title={copyTitle}
iconSize="sm"
/>
) : null);