aboutsummaryrefslogtreecommitdiff
path: root/ext/display-templates.html
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-06-06 14:47:48 -0400
committerGitHub <noreply@github.com>2021-06-06 14:47:48 -0400
commit7ae964c8300092040583bdc341525c6579f76e5c (patch)
treef3c0332becac7da07a50d4bda92f5f6ac88a030c /ext/display-templates.html
parent3a095b1f6cfe10b4d6cfa2e1c6d1ad3587dcfea2 (diff)
Structured content updates (#1733)
* Add support for imageRendering * Make crisp-edges appearance on Firefox more similar to Chrome * Refactor * Add background option * Move data-image-rendering attribute * Restructure * Organize * Add support for appearance * Update test dictionary * Update tests
Diffstat (limited to 'ext/display-templates.html')
-rw-r--r--ext/display-templates.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/display-templates.html b/ext/display-templates.html
index 61d55638..0ad02748 100644
--- a/ext/display-templates.html
+++ b/ext/display-templates.html
@@ -57,7 +57,15 @@
</li></template>
<template id="definition-disambiguation-template"><span class="definition-disambiguation"></span></template>
<template id="gloss-item-template"><li class="gloss-item click-scannable"><span class="gloss-separator"> </span><span class="gloss-content"></span></li></template>
-<template id="gloss-item-image-template"><a class="gloss-image-link" target="_blank" rel="noreferrer noopener"><span class="gloss-image-container"><span class="gloss-image-aspect-ratio-sizer"></span><img class="gloss-image" alt=""><span class="gloss-image-container-overlay"></span></span><span class="gloss-image-link-text">Image</span></a></template>
+<template id="gloss-item-image-template" data-remove-whitespace-text="true"><a class="gloss-image-link" target="_blank" rel="noreferrer noopener">
+ <span class="gloss-image-container">
+ <span class="gloss-image-aspect-ratio-sizer"></span>
+ <span class="gloss-image-background icon"></span>
+ <img class="gloss-image" alt="">
+ <span class="gloss-image-container-overlay"></span>
+ </span>
+ <span class="gloss-image-link-text">Image</span>
+</a></template>
<template id="gloss-item-image-description-template"> <span class="gloss-image-description"></span></template>
<template id="inflection-template"><span class="inflection"></span><span class="inflection-separator"> </span></template>