优化折叠

This commit is contained in:
IndieKKY
2023-06-02 13:49:22 +08:00
parent 098506be33
commit 1a3ac30ec8
3 changed files with 22 additions and 21 deletions

View File

@@ -133,7 +133,7 @@ const Body = () => {
return <div className='relative'>
<div className='absolute top-1 left-6 flex-center gap-1'>
<AiOutlineAim className='cursor-pointer' onClick={posCallback} title='滚动到视频位置'/>
{segments != null && segments.length > 1 &&
{segments != null && segments.length > 0 &&
<MdExpand className={classNames('cursor-pointer', foldAll ? 'text-accent' : '')} onClick={onFoldAll}
title='展开/折叠全部'/>}
</div>