diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-07-14 22:37:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-14 22:37:18 -0400 |
commit | 25d74140ce9843b4bcb86b1b2bbf644602cdb3d0 (patch) | |
tree | 00e5cf7c981712821e7d6b75db85333d434d069c /ext/display-templates.html | |
parent | 260d10c3a34e7da6fd94b6151422ab09f3941c0b (diff) |
Multi view note (#1829)
* Add support for a menu to view multiple note IDs
* Show a + badge when there are multiple notes available
* Organize
Diffstat (limited to 'ext/display-templates.html')
-rw-r--r-- | ext/display-templates.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/display-templates.html b/ext/display-templates.html index b2316975..a7a184a4 100644 --- a/ext/display-templates.html +++ b/ext/display-templates.html @@ -6,7 +6,7 @@ <div class="entry-header"> <div class="actions"> <button class="action-button collapsible-action-button action-view-tags" hidden disabled><span class="icon" data-icon="tag"></span></button> - <button class="action-button action-view-note" hidden disabled data-icon="view-note" title="View added note" data-hotkey='["viewNote","title","View added note ({0})"]'></button> + <button class="action-button action-view-note" hidden disabled data-icon="view-note" title="View added note" data-hotkey='["viewNote","title","View added note ({0})"]' data-menu-position="left below h-cover v-cover"><div class="action-button-badge icon" hidden></div></button> <button class="action-button action-add-note" hidden disabled data-icon="add-term-kanji" data-mode="term-kanji" title="Add expression" data-hotkey='["addNoteTermKanji","title","Add expression ({0})"]'></button> <button class="action-button action-add-note" hidden disabled data-icon="add-term-kana" data-mode="term-kana" title="Add reading" data-hotkey='["addNoteTermKana","title","Add reading ({0})"]'></button> <button class="action-button action-play-audio" data-icon="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"><div class="action-button-badge icon" hidden></div></button> @@ -171,5 +171,7 @@ <button class="popup-menu-item popup-menu-item-audio-button" data-menu-action="playAudioFromSource"><div class="popup-menu-item-icon icon" data-icon="none"></div><span class="popup-menu-item-label"></span></button> <button class="popup-menu-item popup-menu-item-set-primary-audio-button" data-menu-action="setPrimaryAudio" title="Use as audio for Anki card"><div class="popup-menu-item-icon icon" data-icon="note-card"></div></button> </div></template> +<template id="view-note-button-popup-menu-template"><div class="popup-menu-container scan-disable view-note-button-popup-menu" tabindex="-1" role="dialog"><div class="popup-menu popup-menu-auto-size"><div class="popup-menu-body"></div></div></div></template> +<template id="view-note-button-popup-menu-item-template"><button class="popup-menu-item"><span class="popup-menu-item-label"></span></button></template> </body></html> |