ui: fix training_detail page expand

This commit is contained in:
undefined committed 2021-11-29 22:51:24 +08:00
1 parent d0bea74645
commit 4918f41eac
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.26.23", "version": "4.26.24",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "hydro.js", "main": "hydro.js",
@@ -11,7 +11,7 @@ async function handleSection(ev, type: string) {
} else { } else {
await slideUp($detail, 300, { opacity: 1 }, { opacity: 0 }); await slideUp($detail, 300, { opacity: 1 }, { opacity: 0 });
} }
$section.addClass(`${type}d`); $section.addClass(type === 'expand' ? 'expanded' : 'collapsed');
$section.removeClass(type === 'expand' ? 'collapsed' : 'expanded'); $section.removeClass(type === 'expand' ? 'collapsed' : 'expanded');
$section.removeClass('animating'); $section.removeClass('animating');
} }