diff --git a/crates/chat_ui/src/text.rs b/crates/chat_ui/src/text.rs index 982ca11..67c7e65 100644 --- a/crates/chat_ui/src/text.rs +++ b/crates/chat_ui/src/text.rs @@ -69,6 +69,7 @@ impl RenderedText { pub fn element(&self, id: ElementId, window: &Window, cx: &App) -> AnyElement { let code_background = cx.theme().elevated_surface_background; + let color = cx.theme().text_accent; InteractiveText::new( id, @@ -100,6 +101,7 @@ impl RenderedText { } } Highlight::Mention => HighlightStyle { + color: Some(color), underline: Some(UnderlineStyle { thickness: 1.0.into(), ..Default::default() diff --git a/crates/common/src/media_extractor.rs b/crates/common/src/media_extractor.rs index 832586e..8f7dee8 100644 --- a/crates/common/src/media_extractor.rs +++ b/crates/common/src/media_extractor.rs @@ -33,9 +33,9 @@ impl MediaExtractor { } // Extract video URLs - for capture in self.video_regex.find_iter(text) { - urls.push(capture.as_str().to_string().into()); - } + // for capture in self.video_regex.find_iter(text) { + // urls.push(capture.as_str().to_string().into()); + // } urls } @@ -48,7 +48,7 @@ impl MediaExtractor { result = self.image_regex.replace_all(&result, "").to_string(); // Remove video URLs - result = self.video_regex.replace_all(&result, "").to_string(); + // result = self.video_regex.replace_all(&result, "").to_string(); // Clean up extra whitespace that might result from removal self.cleanup_text(&result)