mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix training_detail page expand
This commit is contained in:
1 parent
d0bea74645
commit
4918f41eac
2 files changed
+2
-2
No files matched your search
@@ -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');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user