...
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-25 09:01:48 +08:00
parent 0900ac26f7
commit ffc1499232
4 changed files with 11 additions and 11 deletions

View File

@@ -34,7 +34,7 @@ export default function MemoryCard(
}
return (
<div className="w-full flex justify-center items-center" onKeyDown={(e: KeyboardEvent<HTMLDivElement>) => e.preventDefault()}>
<div className="m-4 p-4 w-full md:w-[60dvw] flex-col rounded-2xl shadow border-gray-200 border flex justify-center items-center">
{/* <div className="m-4 p-4 w-full md:w-[60dvw] flex-col rounded-2xl shadow border-gray-200 border flex justify-center items-center">
<div className="w-full flex justify-end items-center">
<IconClick size={32} alt="close" src={IMAGES.close} onClick={() => setChosenAlphabet(null)}></IconClick>
</div>
@@ -52,7 +52,7 @@ export default function MemoryCard(
</>) : (<></>)
}
</div>
</div>
</div> */}
</div>
);
}

View File

@@ -45,8 +45,8 @@ export default function UploadArea(
}
return (
<div className="w-full flex flex-col gap-2 m-2">
<Button label="上传视频" onClick={uploadVideo} />
<Button label="上传字幕" onClick={uploadSRT} />
<Button onClick={uploadVideo}></Button>
<Button onClick={uploadSRT}></Button>
<input type="file" className="hidden" ref={inputRef} />
</div >
)

View File

@@ -162,11 +162,11 @@ const VideoPanel = forwardRef<HTMLVideoElement, VideoPanelProps>((
<video className="bg-gray-200" ref={videoRef} onTimeUpdate={timeUpdate}></video>
<SubtitleDisplay subtitle={subtitle}></SubtitleDisplay>
<div className="buttons flex mt-2 gap-2 flex-wrap">
<Button label={isPlaying ? '暂停' : '播放'} onClick={togglePlayPause}></Button>
<Button label="上句" onClick={previous}></Button>
<Button label="下句" onClick={next}></Button>
<Button label="句首" onClick={restart}></Button>
<Button label={`自动暂停(${autoPause ? '是' : '否'})`} onClick={handleAutoPauseToggle}></Button>
<Button onClick={togglePlayPause}>{isPlaying ? '暂停' : '播放'}</Button>
<Button onClick={previous}></Button>
<Button onClick={next}></Button>
<Button onClick={restart}></Button>
<Button onClick={handleAutoPauseToggle}>{`自动暂停(${autoPause ? '是' : '否'})`}</Button>
</div>
<input className="seekbar" type="range" min={0} max={srtLength} onChange={handleSeek} step={1} value={progress}></input>
<span>{spanText}</span>

View File

@@ -1,4 +1,4 @@
export const BOARD_WIDTH = window.innerWidth * 0.68;
export const BOARD_HEIGHT = window.innerHeight * 0.68;
export const BOARD_WIDTH = globalThis.innerWidth * 0.68;
export const BOARD_HEIGHT = globalThis.innerHeight * 0.68;
export const TEXT_SIZE = 30;
export const TEXT_WIDTH = TEXT_SIZE * 0.6;