Fix audio buttons not being hidden properly
This commit is contained in:
parent
b3994acbac
commit
46fee07d36
@ -277,10 +277,6 @@ button.action-button {
|
|||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.term-expression-details>.action-play-audio {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.term-expression-details>.tags {
|
.term-expression-details>.tags {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
@ -318,8 +314,8 @@ button.action-button {
|
|||||||
bottom: 0.5em;
|
bottom: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.term-expression-list[data-multi=true] .term-expression-details>.action-play-audio {
|
.term-expression-list:not([data-multi=true]) .term-expression-details>.action-play-audio {
|
||||||
display: block;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.term-expression-list[data-multi=true] .term-expression-details>.tags {
|
.term-expression-list[data-multi=true] .term-expression-details>.tags {
|
||||||
|
@ -369,7 +369,7 @@ class Display {
|
|||||||
updateDocumentOptions(options) {
|
updateDocumentOptions(options) {
|
||||||
const data = document.documentElement.dataset;
|
const data = document.documentElement.dataset;
|
||||||
data.ankiEnabled = `${options.anki.enable}`;
|
data.ankiEnabled = `${options.anki.enable}`;
|
||||||
data.audioEnabled = `${options.audio.enable}`;
|
data.audioEnabled = `${options.audio.enabled}`;
|
||||||
data.compactGlossaries = `${options.general.compactGlossaries}`;
|
data.compactGlossaries = `${options.general.compactGlossaries}`;
|
||||||
data.enableSearchTags = `${options.scanning.enableSearchTags}`;
|
data.enableSearchTags = `${options.scanning.enableSearchTags}`;
|
||||||
data.debug = `${options.general.debugInfo}`;
|
data.debug = `${options.general.debugInfo}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user