From 205ca03ced720c1b8fe81f6eadf26f20fb8414cf Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 11 Feb 2025 23:17:24 -0500 Subject: [PATCH] fix: Mentions matching find and replace not correctly highlighted --- shared/editor/components/Styles.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts index 133f52209a..1e2fc7c46b 100644 --- a/shared/editor/components/Styles.ts +++ b/shared/editor/components/Styles.ts @@ -251,10 +251,13 @@ const codeBlockStyle = (props: Props) => css` `; const findAndReplaceStyle = () => css` - .find-result { + .find-result:not(:has(.mention)), + .find-result .mention { background: rgba(255, 213, 0, 0.25); + } - &.current-result { + .find-result.current-result:not(:has(.mention)), + .find-result.current-result .mention { background: rgba(255, 213, 0, 0.75); animation: ${pulse} 150ms 1; } @@ -615,7 +618,6 @@ iframe.embed { } .column-resize-handle { - animation: ${fadeIn} 150ms ease-in-out; ${props.readOnly ? "display: none;" : ""} position: absolute; right: -1px;