From 31166219e473e105b8fd9d49627fd1df58822c55 Mon Sep 17 00:00:00 2001 From: Bob Zeleznik Date: Thu, 24 Oct 2019 00:56:00 -0400 Subject: fixed audio box shrinking layout. fixed pdf z-index issue in stacking panels. --- src/client/views/nodes/AudioBox.scss | 31 ++++++++++++++++++++++++++++--- src/client/views/nodes/AudioBox.tsx | 16 ++++++++++------ src/client/views/nodes/PDFBox.scss | 1 - 3 files changed, 38 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/AudioBox.scss b/src/client/views/nodes/AudioBox.scss index 3d6f6c4f9..ccbf0d75f 100644 --- a/src/client/views/nodes/AudioBox.scss +++ b/src/client/views/nodes/AudioBox.scss @@ -36,6 +36,8 @@ height:100%; position: relative; display: flex; + padding-left: 2px; + border: gray solid 3px; .audiobox-player { margin-top:auto; margin-bottom:auto; @@ -59,7 +61,7 @@ background-color: red; position: absolute;; } - .audiobox-linker { + .audiobox-linker, .audiobox-linker-mini { position:absolute; width:15px; min-height:10px; @@ -76,10 +78,24 @@ top: calc(100% - 15px) !important; } } - .audiobox-linker:hover { + .audiobox-linker-mini { + width:8px; + min-height:8px; + height:8px; + box-shadow: black 1px 1px 1px; + margin-left: -1; + margin-top: -2; + .docuLinkBox-cont { + width:8px !important; + height:8px !important; + left: calc(100% - 8px) !important; + top: calc(100% - 8px) !important; + } + } + .audiobox-linker:hover, .audiobox-linker-mini:hover { transform:scale(1.5); } - .audiobox-marker-container { + .audiobox-marker-container, .audiobox-marker-minicontainer { position:absolute; width:10px; height:100%; @@ -95,6 +111,15 @@ border: orange 2px solid; } } + .audiobox-marker-minicontainer { + width:5px; + border-radius: 1px; + .audiobox-marker { + position:relative; + height: calc(100% - 8px); + margin-top: 8px; + } + } } } } diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx index 3933c6257..cc1c63d44 100644 --- a/src/client/views/nodes/AudioBox.tsx +++ b/src/client/views/nodes/AudioBox.tsx @@ -184,7 +184,10 @@ export class AudioBox extends DocExtendableComponent this.playFrom(this._ele!.paused ? this._ele!.currentTime : -1); + onPlay = (e: any) => { + this.playFrom(this._ele!.paused ? this._ele!.currentTime : -1); + e.stopPropagation(); + } onStop = (e: any) => { this.pause(); this._ele!.currentTime = 0; @@ -213,7 +216,8 @@ export class AudioBox extends DocExtendableComponent +
{!this.path ?