From 77a3a61063a7d9774a5f5d0e6a6a951db29c804b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 5 Mar 2023 21:01:31 +0100 Subject: [PATCH] fix: various audioviewer bugs & improvements - reflect editable state of regions - editing regions actually works - note is hidden in NOTE - add logging - select annotation by (not double) clicking --- .../display/blobs/AudioViewer.svelte | 166 +++++++++++------- 1 file changed, 103 insertions(+), 63 deletions(-) diff --git a/webui/src/components/display/blobs/AudioViewer.svelte b/webui/src/components/display/blobs/AudioViewer.svelte index e59b212..7eb7658 100644 --- a/webui/src/components/display/blobs/AudioViewer.svelte +++ b/webui/src/components/display/blobs/AudioViewer.svelte @@ -1,7 +1,7 @@ -
+
{#if !loaded} {/if} @@ -254,7 +282,15 @@
{#if currentAnnotation}
-

Annotation #{currentAnnotationIndex}

+
+

{$i18n.t("Annotation")}

+
+ {#if currentAnnotation.attributes["upend-address"]} + + {/if}
@@ -310,7 +346,7 @@ {#key currentAnnotation} { @@ -379,6 +415,10 @@ display: none; } + :global(.audio:not(.editable) .wavesurfer-handle) { + display: none; + } + :global(.wavesurfer-handle) { background: var(--foreground-lightest) !important; }