diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-02-27 16:54:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-27 16:54:15 -0500 |
commit | c4b2e83cb4291a3ad11d05a21a45701e3a407055 (patch) | |
tree | fc04f0219d927a6575e04618f2fa63a4083b7e96 /ext/js/display | |
parent | 8d3436fca3885ba648e2c6f6bad4fa11bd8cb8c4 (diff) |
Organize display styles (#1452)
* Improve grouping for inflection and expression styles
* kanji-link => expression-kanji-link
* Remove unnecessary entry-header2 and entry-header3
* Move tag list into header for consistency with term definitions
* Move styles
* Add clear
Diffstat (limited to 'ext/js/display')
-rw-r--r-- | ext/js/display/display-generator.js | 2 | ||||
-rw-r--r-- | ext/js/display/display.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/display/display-generator.js b/ext/js/display/display-generator.js index 1a73ff80..32059d86 100644 --- a/ext/js/display/display-generator.js +++ b/ext/js/display/display-generator.js @@ -368,7 +368,7 @@ class DisplayGenerator { _createKanjiLink(character) { const node = document.createElement('a'); - node.className = 'kanji-link'; + node.className = 'expression-kanji-link'; this._setTextContent(node, character, 'ja'); return node; } diff --git a/ext/js/display/display.js b/ext/js/display/display.js index f5673737..ad9a25b4 100644 --- a/ext/js/display/display.js +++ b/ext/js/display/display.js @@ -1679,7 +1679,7 @@ class Display extends EventDispatcher { this._eventListeners.addEventListener(entry, 'click', this._onEntryClick.bind(this)); this._addMultipleEventListeners(entry, '.action-add-note', 'click', this._onNoteAdd.bind(this)); this._addMultipleEventListeners(entry, '.action-view-note', 'click', this._onNoteView.bind(this)); - this._addMultipleEventListeners(entry, '.kanji-link', 'click', this._onKanjiLookup.bind(this)); + this._addMultipleEventListeners(entry, '.expression-kanji-link', 'click', this._onKanjiLookup.bind(this)); this._addMultipleEventListeners(entry, '.debug-log-link', 'click', this._onDebugLogClick.bind(this)); this._addMultipleEventListeners(entry, '.tag-label', 'click', this._onTagClick.bind(this)); } |