From 7642ca40834052be094009c0d3102bfcc77b89d6 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Tue, 10 Nov 2020 07:52:20 +0000 Subject: [PATCH] Move audio controls to the bottom of audio thumbnails with waveform --- gulp/res/js/expand.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gulp/res/js/expand.js b/gulp/res/js/expand.js index fa7d3d41..97b67a51 100644 --- a/gulp/res/js/expand.js +++ b/gulp/res/js/expand.js @@ -169,9 +169,10 @@ window.addEventListener('DOMContentLoaded', (event) => { expandedElement.style.backgroundImage = `url("${encodeURI(thumbElement.src)}")`; expandedElement.style.backgroundRepeat = 'no-repeat'; + expandedElement.style.backgroundPosition = 'top'; expandedElement.style.backgroundSize = 'contain'; expandedElement.style.minWidth = thumbElement.width+'px'; - expandedElement.style.minHeight = thumbElement.height+'px'; + expandedElement.style.paddingTop = thumbElement.height+'px'; } else { expandedElement.style.minWidth = fileAnchor.offsetWidth+'px'; expandedElement.style.minHeight = fileAnchor.offsetHeight+'px';