From 9793e22cb8876c6b7b1f1ca46efe14d7d0a680f2 Mon Sep 17 00:00:00 2001 From: jorg-vr Date: Thu, 3 Aug 2023 13:28:06 +0200 Subject: [PATCH] Auto expand annotation button when a selection is active --- .../components/annotations/create_annotation_button.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/annotations/create_annotation_button.ts b/app/assets/javascripts/components/annotations/create_annotation_button.ts index 22d99b8bf8..fbbff2b7b0 100644 --- a/app/assets/javascripts/components/annotations/create_annotation_button.ts +++ b/app/assets/javascripts/components/annotations/create_annotation_button.ts @@ -93,7 +93,7 @@ export class CreateAnnotationButton extends ShadowlessLitElement { // If the range exists, the button should only be shown on the last row of the range // Or on the row where the drag started if the drag is still in progress if (this.isRangeEnd || this.isDragStart) { - classes += "show"; + classes += "show expanded"; } else { classes += "hide"; }