Sfoglia il codice sorgente

Visually hide br in text selections (#5447)

GitOrigin-RevId: ee26da17dd8087545022ce704ef98102e7eb9ea0
Alf Eaton 5 anni fa
parent
commit
7991fc1ebd
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      services/web/frontend/stylesheets/app/editor/pdf.less

+ 4 - 0
services/web/frontend/stylesheets/app/editor/pdf.less

@@ -216,6 +216,10 @@
     &:focus-within {
     &:focus-within {
       outline: none;
       outline: none;
     }
     }
+    /* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */
+    .textLayer br::selection {
+      background: transparent;
+    }
   }
   }
   .progress-thin {
   .progress-thin {
     position: absolute;
     position: absolute;