From 6a0eec5c7815912add96d0384b571a57785127d2 Mon Sep 17 00:00:00 2001 From: paspo Date: Wed, 30 Oct 2024 09:21:41 +0000 Subject: [PATCH] fix taglist (#324) fix nascondino tag Reviewed-on: https://git.libreschool.org/BgLUG/bglug.it/pulls/324 Co-authored-by: paspo Co-committed-by: paspo --- assets/js/taglist.js | 8 ++++---- assets/sass/custom.scss | 7 +++++++ layouts/partials/sidebar/taglist.html | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/assets/js/taglist.js b/assets/js/taglist.js index 4bcce0d..9088324 100644 --- a/assets/js/taglist.js +++ b/assets/js/taglist.js @@ -1,5 +1,5 @@ function show_all_tags(e) { - $(".tags-sidebar li").css("display","inline-block"); - $(e).css("display","none"); - return false; - } + $(".tags-sidebar li").removeClass("hidden"); + $(e).addClass("hidden"); + return false; +} diff --git a/assets/sass/custom.scss b/assets/sass/custom.scss index c5164f6..cfd8114 100644 --- a/assets/sass/custom.scss +++ b/assets/sass/custom.scss @@ -209,3 +209,10 @@ article header div.author { .icon.major { cursor: pointer; } + +.tags-sidebar { + li.hidden { + display: none; + visibility: hidden; + } +} \ No newline at end of file diff --git a/layouts/partials/sidebar/taglist.html b/layouts/partials/sidebar/taglist.html index b8112ae..46e3d1c 100644 --- a/layouts/partials/sidebar/taglist.html +++ b/layouts/partials/sidebar/taglist.html @@ -50,7 +50,7 @@
  • {{ .Page.LinkTitle | safeHTML }} ({{ len .Pages }})
  • {{ else }} -
  • +
  • {{ end }} {{ end }}