Merge pull request #13478 from brendandahl/find-regression

Fix find highlighting regression from #13306.
This commit is contained in:
Jonas Jenwald 2021-06-04 14:09:35 +02:00 committed by GitHub
commit 3b502f7e07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -34,13 +34,16 @@
}
.textLayer .highlight {
position: relative;
margin: -1px;
padding: 1px;
background-color: rgba(180, 0, 170, 1);
border-radius: 4px;
}
.textLayer .highlight.appended {
position: initial;
}
.textLayer .highlight.begin {
border-radius: 4px 0 0 4px;
}

View File

@ -239,7 +239,7 @@ class TextLayerBuilder {
const node = document.createTextNode(content);
if (className) {
const span = document.createElement("span");
span.className = className;
span.className = `${className} appended`;
span.appendChild(node);
div.appendChild(span);
return;