aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--anki-card-template/card.css1
-rw-r--r--anki-card-template/card.js1
2 files changed, 1 insertions, 1 deletions
diff --git a/anki-card-template/card.css b/anki-card-template/card.css
index a112218..bbad5ca 100644
--- a/anki-card-template/card.css
+++ b/anki-card-template/card.css
@@ -250,6 +250,7 @@ rt { user-select: none; }
padding: 10px;
opacity: 60%;
transition: opacity var(--tag-transition);
+ line-height: 1.5;
}
/* tag style */
diff --git a/anki-card-template/card.js b/anki-card-template/card.js
index 18d5eda..73869b8 100644
--- a/anki-card-template/card.js
+++ b/anki-card-template/card.js
@@ -239,7 +239,6 @@ function parseTags(nodes) {
tags = tags.replaceAll("::", " "); // treat subtags as normal tags
tags = tags.split(" "); // split on space (tags may not contain spaces)
tags = Array.from(new Set(tags)); // remove duplicates
- tags = tags.sort(); // sort the tags
tags = tags.map(text => text.replaceAll("_", " ")); // display underscore as space
for (var tag of tags)
out += `<span class="tag" style="--tag-hue: ${calculateTagHue(tag)};"><span class="inner">${tag}</span></span>`;