diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-02-19 09:35:44 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-02-19 09:35:44 +0100 |
commit | fb91107a4118433e091988e1c04581b113b469db (patch) | |
tree | 362146a3064a50fa063d008ceb3f4f4bc60312e0 | |
parent | 363f1f6561cf09965cbdd0e94225960a9c8ed81e (diff) |
more small adjustments
-rw-r--r-- | anki-card-template/card.css | 1 | ||||
-rw-r--r-- | anki-card-template/card.js | 1 |
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>`; |