1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

appgenerator: hmpf fuck the max-height transition trick, the max-height is fucking things up when the content heigh changes after expanding zzzz

This commit is contained in:
Alexandre Aubin 2024-05-08 18:11:34 +02:00
parent f61a6dae1e
commit 5bd4f39835
2 changed files with 0 additions and 10 deletions

View file

@ -47,8 +47,6 @@
}
.panel-body {
@apply p-2;
transition: max-height 0.2s ease-in;
max-height: 0px;
}
.alert-info {

View file

@ -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";
}
});
}
</script>