fix(webui): match slash command highlighting to skills

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-26 17:33:27 +08:00
1 parent dfb3843b4d
commit 3230013963
6 files changed
+97 -21

No files matched your search

+7 -4
View File
@@ -1,21 +1,24 @@
import {
INLINE_TOKEN_HIGHLIGHT_COLOR,
INLINE_REFERENCE_HIGHLIGHT_COLOR,
InlineTokenHighlight,
} from "@/components/InlineTokenHighlight";
interface SlashCommandTextProps {
command: string;
testId?: string;
}
export function SlashCommandText({
command,
testId = "message-slash-command",
}: SlashCommandTextProps) {
return (
<InlineTokenHighlight
testId="message-slash-command"
color={INLINE_TOKEN_HIGHLIGHT_COLOR}
testId={testId}
className="font-normal"
color={INLINE_REFERENCE_HIGHLIGHT_COLOR}
>
{command}
<span className="opacity-90">/</span>{command.slice(1)}
</InlineTokenHighlight>
);
}