FIX: Ask AI highlight fixes (#562)
This commit is contained in:
parent
505650205d
commit
35fbf5c836
|
@ -100,9 +100,14 @@ export default class AIHelperOptionsMenu extends Component {
|
|||
);
|
||||
|
||||
const textNodes = [];
|
||||
|
||||
if (walker.currentNode?.nodeType === Node.TEXT_NODE) {
|
||||
textNodes.push(walker.currentNode);
|
||||
} else {
|
||||
while (walker.nextNode()) {
|
||||
textNodes.push(walker.currentNode);
|
||||
}
|
||||
}
|
||||
|
||||
for (let textNode of textNodes) {
|
||||
const highlight = document.createElement("span");
|
||||
|
|
|
@ -142,7 +142,7 @@
|
|||
}
|
||||
|
||||
.ai-helper-highlighted-selection {
|
||||
background-color: var(--highlight-low);
|
||||
background-color: var(--highlight-low-or-medium);
|
||||
}
|
||||
|
||||
// AI Typing indicator (taken from: https://github.com/nzbin/three-dots)
|
||||
|
|
Loading…
Reference in New Issue