diff --git a/.version b/.version
index 96d7717..cae9add 100644
--- a/.version
+++ b/.version
@@ -1 +1 @@
-2.8.1
\ No newline at end of file
+2.8.2
\ No newline at end of file
diff --git a/files/global.css b/files/global.css
index c4e723e..2cb0e17 100644
--- a/files/global.css
+++ b/files/global.css
@@ -157,14 +157,31 @@ figure {
cursor: pointer;
}
-.tooltip a object {
+.tooltip a {
cursor: pointer;
}
+.tagtoggle {
+ cursor: pointer;
+ float: right;
+ padding: 12px;
+
+}
+
+.tagflex {
+ display: flex;
+}
+
+.tag {
+ flex: 1;
+}
+
+input {
+ pointer-events: none;
+}
+
.tooltiptext {
- display: none;
cursor: default;
- width: max-content;
position: absolute;
z-index: 100;
opacity: 0;
@@ -176,11 +193,24 @@ figure {
.tooltip .infotext {
padding: 12px;
+ width: max-content;
}
-.tooltip .tagdropdown {
+.tooltiptext.tagdropdown {
+ width: max-content;
+ right: 0;
padding: 0;
margin: 0;
+ overflow: hidden;
+ transition: max-height 0.3s ease, opacity 0.3s ease;
+ max-height: 0;
+ opacity: 0;
+}
+
+.tooltiptext.tagdropdown.show {
+ max-height: 286px;
+ overflow-y: scroll;
+ opacity: 1;
}
.tooltip:hover .infotext {
@@ -193,12 +223,27 @@ figure {
opacity: 1;
}
-.tooltip .tooltiptext .tagentry {
+.tagentryparent {
+ width: 100%;
+ overflow: hidden;
+ transition: max-height 0.3s ease, opacity 0.3s ease;
+ max-height: 0;
+ opacity: 0;
+}
+
+.tagentryparent.show {
+ max-height: 286px;
+ opacity: 1;
+ overflow-y: scroll;
+}
+
+.tagentry {
list-style: none;
width: 100%;
cursor: pointer;
margin: 0;
padding: 0;
+ display: block;
}
.tooltip .tooltiptext ol {
@@ -208,7 +253,6 @@ figure {
.tooltip .tooltiptext .tagentry label {
cursor: pointer;
- width: 100%;
height: 100%;
padding: 12px;
display: block;
diff --git a/templates/default.css b/templates/default.css
index 4e238d1..055d33b 100644
--- a/templates/default.css
+++ b/templates/default.css
@@ -52,7 +52,11 @@
background-color: var(--color2);
}
-.tagentry > label:hover {
+.tagentry label:hover {
+ background-color: var(--color7);
+}
+
+.tagentry .tagtoggle:hover {
background-color: var(--color4);
}
diff --git a/templates/index.html.j2 b/templates/index.html.j2
index 4b102ff..a69545d 100644
--- a/templates/index.html.j2
+++ b/templates/index.html.j2
@@ -1,16 +1,24 @@
{%- macro render_tags(tag_tree, parent) -%}
-
- {%- for key, value in tag_tree.items() %}
- -
-
- {%- if value %}
+{%- for key, value in tag_tree.items() %}
+
-
+
+
{% if value %}
+ {% endif %}
+
+ {%- if value %}
+
{{ render_tags(value, parent + '|' + key) }}
- {%- endif %}
-
- {%- endfor %}
-
+
+ {%- endif %}
+
+{%- endfor %}
{%- endmacro -%}
@@ -62,8 +70,13 @@
{% if tags %}
-
- Filter by Tags {##}
+
+ Filter by Tags