Fix hidden teams

This commit is contained in:
rxdn 2023-04-28 17:23:10 +01:00
parent 707744de74
commit d64062eab1

View File

@ -28,7 +28,7 @@
<hr/> <hr/>
</div> </div>
<div bind:this={content} class="content"> <div bind:this={content} class="content" class:expanded={expanded}>
<slot name="content"></slot> <slot name="content"></slot>
</div> </div>
</div> </div>
@ -69,7 +69,13 @@
updateSize(); updateSize();
} }
expanded = !expanded; if (expanded) {
expanded = !expanded;
} else {
setTimeout(() => {
expanded = !expanded;
}, 300);
}
} }
function updateSize() { function updateSize() {
@ -106,6 +112,10 @@
max-height: 0; max-height: 0;
} }
.content.expanded {
overflow: unset !important;
}
.inline { .inline {
display: flex; display: flex;
flex-direction: row; flex-direction: row;