Fix highlighting of search results when the textLayer contains br-elements (PR 13257 follow-up, issue 13323)

Apparently we need to layout `br`-elements in the same *exact* way as the regular `span`-elements which contain the text-content.
This commit is contained in:
Jonas Jenwald 2021-05-02 15:19:44 +02:00
parent af9feb1307
commit 883ce5d120
2 changed files with 4 additions and 2 deletions

View File

@ -23,7 +23,8 @@
bottom: 0; bottom: 0;
line-height: 1; line-height: 1;
} }
.textLayer span { .textLayer span,
.textLayer br {
position: absolute; position: absolute;
white-space: pre; white-space: pre;
-webkit-transform-origin: 0% 0%; -webkit-transform-origin: 0% 0%;

View File

@ -24,7 +24,8 @@
line-height: 1; line-height: 1;
} }
.textLayer span { .textLayer span,
.textLayer br {
color: transparent; color: transparent;
position: absolute; position: absolute;
white-space: pre; white-space: pre;