From 96b24db28e1194c4bb44da1afc7d707cc69c800a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Wed, 8 May 2024 18:13:41 +0200 Subject: [PATCH] app_generator: more cleanup (#2314) --- 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"; - } }); }