chore(video_player): change button alignment

This commit is contained in:
Elian Doran 2026-03-10 19:17:51 +02:00
parent 4303f3687e
commit 951fdaec70
No known key found for this signature in database
2 changed files with 26 additions and 9 deletions

View File

@ -14,7 +14,7 @@
bottom: 0;
left: 0;
right: 0;
padding: 1em;
padding: 1.25em;
display: flex;
flex-direction: column;
gap: 0.5em;
@ -40,8 +40,20 @@
.video-buttons-row {
display: flex;
align-items: center;
justify-content: space-between;
> * {
flex: 1;
}
.center {
display: flex;
justify-content: center;
}
.right {
display: flex;
justify-content: flex-end;
}
}
.video-volume-row {

View File

@ -42,12 +42,17 @@ export default function VideoPreview({ note }: { note: FNote }) {
<div className="video-preview-controls">
<SeekBar videoRef={videoRef} />
<div class="video-buttons-row">
<ActionButton
icon={playing ? "bx bx-pause" : "bx bx-play"}
text={playing ? "Pause" : "Play"}
onClick={togglePlayback}
/>
<VolumeControl videoRef={videoRef} />
<div className="left" />
<div className="center">
<ActionButton
icon={playing ? "bx bx-pause" : "bx bx-play"}
text={playing ? "Pause" : "Play"}
onClick={togglePlayback}
/>
</div>
<div className="right">
<VolumeControl videoRef={videoRef} />
</div>
</div>
</div>
</div>