fix(webui): match slash command highlighting to skills
This commit is contained in:
1 parent
dfb3843b4d
commit
3230013963
6 files changed
+97
-21
No files matched your search
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user