From 5bd4f39835c5d7dd971170dd8e235e59f8226754 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 8 May 2024 18:11:34 +0200 Subject: [PATCH] appgenerator: hmpf fuck the max-height transition trick, the max-height is fucking things up when the content heigh changes after expanding zzzz --- tools/app_generator/static/tailwind-local.css | 2 -- tools/app_generator/templates/index.html | 8 -------- 2 files changed, 10 deletions(-) diff --git a/tools/app_generator/static/tailwind-local.css b/tools/app_generator/static/tailwind-local.css index 69fb5155..d77f57d5 100644 --- a/tools/app_generator/static/tailwind-local.css +++ b/tools/app_generator/static/tailwind-local.css @@ -47,8 +47,6 @@ } .panel-body { @apply p-2; - transition: max-height 0.2s ease-in; - max-height: 0px; } .alert-info { diff --git a/tools/app_generator/templates/index.html b/tools/app_generator/templates/index.html index d0e5c436..8a455127 100644 --- a/tools/app_generator/templates/index.html +++ b/tools/app_generator/templates/index.html @@ -370,16 +370,8 @@ for (i = 0; i < coll.length; i++) { coll[i].addEventListener("click", function() { - this.nextElementSibling.classList.toggle("hide"); this.classList.toggle("active"); - - var content = this.nextElementSibling; - if (content.style.maxHeight){ - content.style.maxHeight = null; - } else { - content.style.maxHeight = content.scrollHeight + "px"; - } }); }