feat(video_player): move loop to center section

This commit is contained in:
Elian Doran
2026-03-10 20:46:28 +02:00
parent 3fed2ba42e
commit 80493a52be
2 changed files with 7 additions and 1 deletions

View File

@@ -44,6 +44,11 @@
display: flex;
}
.spacer {
width: var(--icon-button-size, 32px);
height: var(--icon-button-size, 32px);
}
.center {
justify-content: center;
}

View File

@@ -124,12 +124,13 @@ export default function VideoPreview({ note }: { note: FNote }) {
<div className="left">
<PlaybackSpeed videoRef={videoRef} />
<RotateButton videoRef={videoRef} />
<LoopButton videoRef={videoRef} />
</div>
<div className="center">
<div className="spacer" />
<SkipButton videoRef={videoRef} seconds={-10} icon="bx bx-rewind" text={t("video.back-10s")} />
<PlayPauseButton videoRef={videoRef} playing={playing} />
<SkipButton videoRef={videoRef} seconds={30} icon="bx bx-fast-forward" text={t("video.forward-30s")} />
<LoopButton videoRef={videoRef} />
</div>
<div className="right">
<VolumeControl videoRef={videoRef} />