From 46fee07d36b3966af9bacca8c6253b044bde07ee Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 1 Mar 2020 14:45:57 -0500 Subject: [PATCH] Fix audio buttons not being hidden properly --- ext/mixed/css/display.css | 8 ++------ ext/mixed/js/display.js | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ext/mixed/css/display.css b/ext/mixed/css/display.css index c4758235..688a357c 100644 --- a/ext/mixed/css/display.css +++ b/ext/mixed/css/display.css @@ -277,10 +277,6 @@ button.action-button { display: inline; } -.term-expression-details>.action-play-audio { - display: none; -} - .term-expression-details>.tags { display: inline; } @@ -318,8 +314,8 @@ button.action-button { bottom: 0.5em; } -.term-expression-list[data-multi=true] .term-expression-details>.action-play-audio { - display: block; +.term-expression-list:not([data-multi=true]) .term-expression-details>.action-play-audio { + display: none; } .term-expression-list[data-multi=true] .term-expression-details>.tags { diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 631f9e34..e3e5e7df 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -369,7 +369,7 @@ class Display { updateDocumentOptions(options) { const data = document.documentElement.dataset; data.ankiEnabled = `${options.anki.enable}`; - data.audioEnabled = `${options.audio.enable}`; + data.audioEnabled = `${options.audio.enabled}`; data.compactGlossaries = `${options.general.compactGlossaries}`; data.enableSearchTags = `${options.scanning.enableSearchTags}`; data.debug = `${options.general.debugInfo}`;