diff --git a/web/annotation_layer_builder.css b/web/annotation_layer_builder.css index 14373e367..2608291ff 100644 --- a/web/annotation_layer_builder.css +++ b/web/annotation_layer_builder.css @@ -147,6 +147,16 @@ padding-right: 0; } +.annotationLayer .textWidgetAnnotation input.comb:focus { + /* + * Letter spacing is placed on the right side of each character. Hence, the + * letter spacing of the last character may be placed outside the visible + * area, causing horizontal scrolling. We avoid this by extending the width + * when the element has focus and revert this when it loses focus. + */ + width: 103%; +} + .annotationLayer .buttonWidgetAnnotation.checkBox input, .annotationLayer .buttonWidgetAnnotation.radioButton input { appearance: none;