Move SVG text selection styles to pdf_viewer.css

draw_layer_builder.css, which originally included these styles, is not
loaded in GECKOVIEW. This is because it also includes all the styles
related to highlights and drawing, which are only supported in the main
viewer.

The new SVG-based highlights are also used in GECKOVIEW, so even though
the JS logic for them lives in the DrawLayer builder, we need to move the CSS
somewhere where we know it's going to be loaded.
This commit is contained in:
Nicolò Ribaudo 2026-06-25 15:55:26 +02:00
parent 10844326c7
commit 5d81fe5098
No known key found for this signature in database
GPG Key ID: AAFDA9101C58F338
2 changed files with 13 additions and 10 deletions

View File

@ -14,16 +14,6 @@
*/
.canvasWrapper {
.selection {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
background: rgb(0 90 255 / 0.22);
}
svg {
transform: none;

View File

@ -120,6 +120,19 @@
image-rendering: pixelated;
}
}
/* Used by the DrawLayer, but we keep these styles here and not in
* draw_layer_builder.css because we need them to be loaded in GECKOVIEW for
* text selection. */
.selection {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
background: rgb(0 90 255 / 0.22);
}
}
}