aboutsummaryrefslogtreecommitdiff
path: root/ext/display-templates.html
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-10-17 00:15:43 -0400
committerGitHub <noreply@github.com>2021-10-17 00:15:43 -0400
commitca4ed0300b06e8424f4c2e49ff8533a37883e850 (patch)
tree5c352e96130231977a9c4da066338f7198f80ac5 /ext/display-templates.html
parent75aabd983da29023b8423bd44d565202aad6b664 (diff)
Display button updates (#1991)
* Update display buttons * Remove use of _addMultipleEventListeners
Diffstat (limited to 'ext/display-templates.html')
-rw-r--r--ext/display-templates.html43
1 files changed, 33 insertions, 10 deletions
diff --git a/ext/display-templates.html b/ext/display-templates.html
index c181a64e..04c0b5d6 100644
--- a/ext/display-templates.html
+++ b/ext/display-templates.html
@@ -5,12 +5,26 @@
<div class="entry-current-indicator" title="Current entry"><span class="entry-current-indicator-inner"></span></div>
<div class="entry-header">
<div class="actions">
- <button class="action-button action-button-collapsible action-view-tags" hidden disabled><span class="action-icon icon" data-icon="tag"></span></button>
- <button class="action-button action-view-note" hidden disabled title="View added note" data-hotkey='["viewNote","title","View added note ({0})"]' data-menu-position="left below h-cover v-cover"><span class="action-icon icon color-icon" data-icon="view-note"></span><span class="action-button-badge icon" hidden></span></button>
- <button class="action-button action-add-note" hidden disabled data-mode="term-kanji" title="Add expression" data-hotkey='["addNoteTermKanji","title","Add expression ({0})"]'><span class="action-icon icon color-icon" data-icon="add-term-kanji"></span></button>
- <button class="action-button action-add-note" hidden disabled data-mode="term-kana" title="Add reading" data-hotkey='["addNoteTermKana","title","Add reading ({0})"]'><span class="action-icon icon color-icon" data-icon="add-term-kana"></span></button>
- <button class="action-button action-play-audio" title="Play audio" data-title-default="Play audio" data-hotkey='["playAudio",["title","data-title-default"],"Play audio ({0})"]' data-menu-position="left below h-cover v-cover"><span class="action-icon icon color-icon" data-icon="play-audio"></span><span class="action-button-badge icon" hidden></span></button>
- <span class="entry-current-indicator-icon" title="Current entry"><span class="icon color-icon" data-icon="entry-current"></span></span>
+ <button class="action-button action-button-collapsible" data-action="view-tags" hidden disabled>
+ <span class="action-icon icon" data-icon="tag"></span>
+ </button>
+ <button class="action-button" data-action="view-note" hidden disabled title="View added note" data-hotkey='["viewNote","title","View added note ({0})"]' data-menu-position="left below h-cover v-cover">
+ <span class="action-icon icon color-icon" data-icon="view-note"></span>
+ <span class="action-button-badge icon" hidden></span>
+ </button>
+ <button class="action-button" data-action="add-note" hidden disabled data-mode="term-kanji" title="Add expression" data-hotkey='["addNoteTermKanji","title","Add expression ({0})"]'>
+ <span class="action-icon icon color-icon" data-icon="add-term-kanji"></span>
+ </button>
+ <button class="action-button" data-action="add-note" hidden disabled data-mode="term-kana" title="Add reading" data-hotkey='["addNoteTermKana","title","Add reading ({0})"]'>
+ <span class="action-icon icon color-icon" data-icon="add-term-kana"></span>
+ </button>
+ <button class="action-button" data-action="play-audio" title="Play audio" data-title-default="Play audio" data-hotkey='["playAudio",["title","data-title-default"],"Play audio ({0})"]' data-menu-position="left below h-cover v-cover">
+ <span class="action-icon icon color-icon" data-icon="play-audio"></span>
+ <span class="action-button-badge icon" hidden></span>
+ </button>
+ <span class="entry-current-indicator-icon" title="Current entry">
+ <span class="icon color-icon" data-icon="entry-current"></span>
+ </span>
</div>
<div class="headword-list"></div>
<div class="headword-list-details">
@@ -42,7 +56,10 @@
</span>
</div>
<div class="headword-details">
- <button class="action-button action-play-audio" title="Play audio" data-title-default="Play audio" data-hotkey='["playAudio",["title","data-title-default"],"Play audio ({0})"]' data-menu-position="right below h-cover v-cover"><span class="action-icon icon color-icon" data-icon="play-audio"></span><span class="action-button-badge icon" hidden></span></button>
+ <button class="action-button" data-action="play-audio" title="Play audio" data-title-default="Play audio" data-hotkey='["playAudio",["title","data-title-default"],"Play audio ({0})"]' data-menu-position="right below h-cover v-cover">
+ <span class="action-icon icon color-icon" data-icon="play-audio"></span>
+ <span class="action-button-badge icon" hidden></span>
+ </button>
</div>
</div></template>
<template id="definition-item-template" data-remove-whitespace-text="true"><li class="definition-item">
@@ -91,9 +108,15 @@
<div class="entry-current-indicator" title="Current entry"><span class="entry-current-indicator-inner"></span></div>
<div class="entry-header">
<div class="actions">
- <button class="action-button action-view-note" hidden disabled title="View added note" data-hotkey='["viewNote","title","View added note ({0})"]'><span class="action-icon icon color-icon" data-icon="view-note"></span></button>
- <button class="action-button action-add-note" hidden disabled data-mode="kanji" title="Add kanji" data-hotkey='["addNoteKanji","title","Add kanji ({0})"]'><span class="action-icon icon color-icon" data-icon="add-term-kanji"></span></button>
- <span class="entry-current-indicator-icon" title="Current entry"><span class="icon color-icon" data-icon="entry-current"></span></span>
+ <button class="action-button" data-action="view-note" hidden disabled title="View added note" data-hotkey='["viewNote","title","View added note ({0})"]'>
+ <span class="action-icon icon color-icon" data-icon="view-note"></span>
+ </button>
+ <button class="action-button" data-action="add-note" hidden disabled data-mode="kanji" title="Add kanji" data-hotkey='["addNoteKanji","title","Add kanji ({0})"]'>
+ <span class="action-icon icon color-icon" data-icon="add-term-kanji"></span>
+ </button>
+ <span class="entry-current-indicator-icon" title="Current entry">
+ <span class="icon color-icon" data-icon="entry-current"></span>
+ </span>
</div>
<div class="kanji-glyph-container">
<span class="headword-current-indicator"></span>