FIX: Ask AI highlight fixes (#562)

This commit is contained in:
Keegan George 2024-04-08 11:00:03 -07:00 committed by GitHub
parent 505650205d
commit 35fbf5c836
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -100,8 +100,13 @@ export default class AIHelperOptionsMenu extends Component {
);
const textNodes = [];
while (walker.nextNode()) {
if (walker.currentNode?.nodeType === Node.TEXT_NODE) {
textNodes.push(walker.currentNode);
} else {
while (walker.nextNode()) {
textNodes.push(walker.currentNode);
}
}
for (let textNode of textNodes) {

View File

@ -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)