diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-03-31 18:17:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-31 18:17:28 -0400 |
commit | bcbd413e571d772a4438f57138169ad1a6a3b5a8 (patch) | |
tree | e8768f5e91e62759e2dce7179359aa83ff6e4d0f /ext/display-templates.html | |
parent | cbcfdcacaf68efb09e47932f5b14881b982aecd2 (diff) |
Definition collapsing when overflowing (#1575)
* Add double-down-chevron.svg
* Add options
* Update dictionary importers
* Update settings
* Add support for collapsible definitions
* Improve case when there is a very small amount of overflow
* Fix incorrect enabled state of newly imported dictionaries
Diffstat (limited to 'ext/display-templates.html')
-rw-r--r-- | ext/display-templates.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/display-templates.html b/ext/display-templates.html index 20978d65..25beacb0 100644 --- a/ext/display-templates.html +++ b/ext/display-templates.html @@ -45,7 +45,16 @@ <div class="expression-tag-list tag-list"></div> </div> </div></template> -<template id="definition-item-template"><li class="definition-item"><div class="definition-tag-list tag-list"></div><div class="definition-disambiguation-list"></div><ul class="glossary-list"></ul></li></template> +<template id="definition-item-template" data-remove-whitespace-text="true"><li class="definition-item"> + <div class="definition-item-inner"> + <button class="definition-item-expansion-button"><div class="definition-item-expansion-button-icon icon" data-icon="double-down-chevron"></div></button> + <div class="definition-item-content"> + <div class="definition-tag-list tag-list"></div> + <div class="definition-disambiguation-list"></div> + <ul class="glossary-list"></ul> + </div> + </div> +</li></template> <template id="definition-disambiguation-template"><span class="definition-disambiguation"></span></template> <template id="glossary-item-template"><li class="glossary-item click-scannable"><span class="glossary-separator"> </span><span class="glossary"></span></li></template> <template id="glossary-item-image-template"><li class="glossary-item click-scannable" data-has-image="true"><span class="glossary-separator"> </span><span class="glossary"><a class="glossary-image-link" target="_blank" rel="noreferrer noopener"><span class="glossary-image-container"><span class="glossary-image-aspect-ratio-sizer"></span><img class="glossary-image" alt=""><span class="glossary-image-container-overlay"></span></span><span class="glossary-image-link-text">Image</span></a> <span class="glossary-image-description"></span></span></li></template> |