fix(webui): emphasize mention brand names without shifting caret

This commit is contained in:
Xubin Ren committed 2026-09-13 13:53:20 +08:00
1 parent b6122b9018
commit 902e2b87b4
3 files changed
+32 -3

No files matched your search

+1 -1
View File
@@ -690,7 +690,7 @@ describe("MessageBubble", () => {
expect(token).toHaveAttribute("title", `${kind === "cli" ? "CLI app" : "MCP server"}: ${expected} (@${name})`);
expect(token).toHaveClass("inline-flex", "items-baseline", "max-w-full", "[overflow-wrap:anywhere]");
expect(token.firstElementChild).toHaveClass("shrink-0");
expect(token.lastElementChild).toHaveClass("min-w-0");
expect(token.lastElementChild).toHaveClass("min-w-0", "font-semibold");
expect(message.content).toBe(`Use @${name} please`);
},
);