fix: mention slug regex includes hyphens + dropdown opaque background

This commit is contained in:
Markov 2026-03-14 06:58:53 +01:00
parent 665024e70b
commit b41bb8ab1c
2 changed files with 2 additions and 1 deletions

View File

@ -222,7 +222,7 @@ export default function ChatPanel({ chatId, projectId }: Props) {
setSending(true); setSending(true);
try { try {
// Extract @mentions from text → resolve to member IDs // Extract @mentions from text → resolve to member IDs
const mentionMatches = text.match(/@(\w+)/g); const mentionMatches = text.match(/@([\w-]+)/g);
const mentionSlugs = mentionMatches ? [...new Set(mentionMatches.map(m => m.slice(1)))] : []; const mentionSlugs = mentionMatches ? [...new Set(mentionMatches.map(m => m.slice(1)))] : [];
const mentions = mentionSlugs const mentions = mentionSlugs
.map(slug => mentionMapRef.current.get(slug)) .map(slug => mentionMapRef.current.get(slug))

View File

@ -6,6 +6,7 @@
--accent: #3b82f6; --accent: #3b82f6;
--border: #262626; --border: #262626;
--card: #141414; --card: #141414;
--surface: #1a1a1a;
--muted: #737373; --muted: #737373;
} }