From 36e6ae5b2f05f8e133bf66fb7195dfa2d2bb7bdb Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 10 Jan 2021 16:41:34 +0100 Subject: [PATCH] Correctly align annotation content in horizontal/spread scrolling modes Not only was long text in popups no longer wrapped correctly, the alignment was also center instead of left (or right, depending on the locale used) for both text in popups and the other parts within the annotation's section, such as the icon. --- web/annotation_layer_builder.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/annotation_layer_builder.css b/web/annotation_layer_builder.css index 8434db710..40eb66748 100644 --- a/web/annotation_layer_builder.css +++ b/web/annotation_layer_builder.css @@ -15,6 +15,7 @@ .annotationLayer section { position: absolute; + text-align: initial; } .annotationLayer .linkAnnotation > a, @@ -165,6 +166,7 @@ cursor: pointer; font: message-box; font-size: 9px; + white-space: normal; word-wrap: break-word; }