diff --git a/ext/css/display.css b/ext/css/display.css index c7827710..6fffc5ab 100644 --- a/ext/css/display.css +++ b/ext/css/display.css @@ -644,6 +644,9 @@ button.action-button[hidden] { -webkit-filter var(--animation-duration) linear, background-color var(--animation-duration) linear; } +button.collapsible-action-button[hidden] { + display: none; +} button.action-button:disabled { pointer-events: none; cursor: default; @@ -667,7 +670,7 @@ button.action-button:active { background-color: var(--action-button-active-color); box-shadow: none; } -button.action-button::before { +button.action-button[data-icon]::before { content: ''; width: var(--action-button-size); height: var(--action-button-size); @@ -691,6 +694,12 @@ button.action-button[data-icon=play-audio]::before { button.action-button[data-icon=source-term]::before { background-image: url('/images/source-term.svg'); } +.action-view-tags>.icon { + display: block; + width: var(--action-button-size); + height: var(--action-button-size); + background-color: var(--text-color); +} :root[data-result-output-mode=merge] .entry[data-type=term] .actions>button.action-button.action-play-audio { display: none; } diff --git a/ext/data/schemas/options-schema.json b/ext/data/schemas/options-schema.json index 5ec54b86..69e042ea 100644 --- a/ext/data/schemas/options-schema.json +++ b/ext/data/schemas/options-schema.json @@ -806,7 +806,8 @@ "duplicateScope", "checkForDuplicates", "fieldTemplates", - "suspendNewCards" + "suspendNewCards", + "displayTags" ], "properties": { "enable": { @@ -912,6 +913,11 @@ "suspendNewCards": { "type": "boolean", "default": false + }, + "displayTags": { + "type": "string", + "enum": ["never", "always", "non-standard"], + "default": "never" } } }, diff --git a/ext/display-templates.html b/ext/display-templates.html index 6496b73e..6637e70e 100644 --- a/ext/display-templates.html +++ b/ext/display-templates.html @@ -5,6 +5,7 @@
+ When coming across a word that is already in an Anki deck, a button will appear that shows + the tags the card has. If set to Non-Standard, all tags that are included in the + Card tags option will be filtered out from the list. If no tags remain after filtering, + then the button will not be shown. +
++ Less… +
+