Skip to content

Commit

Permalink
Style selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
undyingwraith committed Jan 30, 2025
1 parent 1866590 commit d96c62d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@
.toolbar {
display: flex;
justify-content: space-between;
background-color: darkgrey;
background-color: #969696;
}

.progress,
.progressFilled {
height: 25px;
background-color: #4a4a4b;
border-radius: 0.25rem;
}

.progress {
Expand All @@ -58,6 +59,7 @@

.progressFilled {
background-color: white;
border-radius: 0.25rem;
width: 0;
}

Expand All @@ -67,3 +69,11 @@
flex-direction: row;
gap: 15px;
}

.videoText {
color: black;
}

select {
background-color: darkgray;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ declare const styles: {
readonly progressFilled: string;
readonly visible: string;
readonly progressContainer: string;
readonly videoText: string;
};
export default styles;
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,15 @@ export function VideoPlayer(props: { file: IVideoFile; autoPlay?: boolean; }) {
{computed(() => playing.value ? <Pause /> : <PlayArrow />)}
</IconButton>
<div>
Language
<span className={styles.videoText}>Language</span>
<select>
{computed(() => languages.value.map(l => (
<option>{l}</option>
)))}
</select>
</div>
<div>
Subtitle
<span className={styles.videoText}>Subtitle</span>
<select onChange={(ev) => {
if (ev.currentTarget.value !== 'null') {
playerRef.value.selectTextTrack(ev.currentTarget.value);
Expand Down

0 comments on commit d96c62d

Please sign in to comment.