From 2f6229cd5485f90a64d179a1413556fabc0ed338 Mon Sep 17 00:00:00 2001 From: Son Date: Tue, 11 Jan 2022 12:25:49 +0100 Subject: [PATCH] change collapse button display "more" -> "less" --- templates/dashboard/index.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/templates/dashboard/index.html b/templates/dashboard/index.html index c84c6a4c..853206fb 100644 --- a/templates/dashboard/index.html +++ b/templates/dashboard/index.html @@ -16,6 +16,16 @@ em { padding: 0px; } + + {#CSS to change collapse button display from https://stackoverflow.com/a/31967516/1428034#} + [data-toggle="collapse"].collapsed .if-not-collapsed { + display: none; + } + + [data-toggle="collapse"]:not(.collapsed) .if-collapsed { + display: none; + } + {% endblock %} @@ -385,9 +395,15 @@ {% if not current_user.expand_alias_info %}
-
{% endif %}