From 348725387dc219a65be5c6573df64823630e8997 Mon Sep 17 00:00:00 2001
From: Frank Steinberg <steinberg@ibr.cs.tu-bs.de>
Date: Fri, 25 Oct 2019 13:38:04 +0200
Subject: [PATCH] Minor.

---
 web/show.css | 2 +-
 web/show.js  | 9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/web/show.css b/web/show.css
index 780e9d2..05f0dfb 100644
--- a/web/show.css
+++ b/web/show.css
@@ -92,7 +92,7 @@ styleguide subcategory {
     transition-duration: .3s;
     transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
     overflow-y: hidden;
-    max-height: 10000px;
+    max-height: 6000px;
 }
 
 styleguide b {
diff --git a/web/show.js b/web/show.js
index 36490fc..b6048f0 100644
--- a/web/show.js
+++ b/web/show.js
@@ -70,8 +70,13 @@ function renderStyleguide(styleguide) {
 	});
 
 	nav.addEventListener("click", function() {
-	    this.parentNode.classList.toggle("closed");
-	    this.parentNode.classList.toggle("open");
+	    if (this.parentNode.classList.contains("closed")) {
+		this.parentNode.classList.remove("closed");
+		this.parentNode.classList.add("open");
+	    } else {
+		this.parentNode.classList.add("closed");
+		this.parentNode.classList.remove("open");
+	    }
 	});
 
 	parts[i].classList.add("closed");
-- 
GitLab