mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Minor fixes
This commit is contained in:
@@ -372,7 +372,7 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
|
||||
highlightLayerRef.current.innerHTML = text
|
||||
.replace(/\n$/, "\n\n")
|
||||
.replace(/[<>&]/g, (c) => ({ "<": "<", ">": ">", "&": "&" }[c] || c))
|
||||
.replace(mentionRegexGlobal, '<mark class="mention-context-highlight">$&</mark>')
|
||||
.replace(mentionRegexGlobal, '<mark class="mention-context-textarea-highlight">$&</mark>')
|
||||
|
||||
highlightLayerRef.current.scrollTop = textAreaRef.current.scrollTop
|
||||
highlightLayerRef.current.scrollLeft = textAreaRef.current.scrollLeft
|
||||
|
||||
@@ -351,9 +351,7 @@ export const highlightMentions = (text?: string, withShadow = true) => {
|
||||
return (
|
||||
<span
|
||||
key={index}
|
||||
className={`mention-context-highlight-${
|
||||
withShadow ? "visible-with-shadow" : "visible-without-shadow"
|
||||
}`}>
|
||||
className={withShadow ? "mention-context-highlight-with-shadow" : "mention-context-highlight"}>
|
||||
@{part}
|
||||
</span>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user