Skip to content

Commit ee20146

Browse files
author
Pietro Passarelli - News Labs
committed
adjusted Select
1 parent 89a06ad commit ee20146

File tree

7 files changed

+33
-13
lines changed

7 files changed

+33
-13
lines changed

src/lib/TranscriptEditor/MediaPlayer/PlayerControls.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ import {
1414
faPause,
1515
faBackward,
1616
faForward,
17-
faUndo
17+
faUndo,
18+
faStepBackward
1819
} from '@fortawesome/free-solid-svg-icons';
1920

2021
class PlayerControls extends React.Component {

src/lib/TranscriptEditor/MediaPlayer/PlayerControls.module.css

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
margin-top: 0.5em;
66
margin-left: 0.5em;
77
margin: 1em;
8-
display: flex;
9-
justify-content: flex-start;
8+
/* display: flex; */
9+
/* justify-content: flex-start; */
10+
1011
}
1112

1213
.playerControls > * {
@@ -15,7 +16,7 @@
1516

1617
.playerControls > *:not(:last-child) {
1718
margin-right: 0.5em;
18-
background: color-darkest-grey;
19+
/* background: color-darkest-grey; */
1920
}
2021

2122
.playerButton {
@@ -30,23 +31,28 @@
3031
/* border-color: black;
3132
border-width: 0.1rem;
3233
border-style: solid; */
34+
35+
margin-right: 0.3rem;
3336
}
3437

3538
.playBackRate{
39+
height: 48px;
40+
width: 70px;
3641
border: 0;
3742
color: white;
38-
background: color-darkest-grey;
43+
/* background: color-darkest-grey; */
3944
font-size: 1em;
4045
cursor: pointer;
4146
position: relative;
4247
padding-left: 0.8em;
48+
margin-right: 0.3rem;
4349
}
4450

4551
.playBackRate::before{
4652
content: '×';
4753
position: absolute;
4854
bottom: -2px;
49-
left: 12px;
55+
left: 30px;/*<-- */
5056
}
5157

5258
.playBackRate > select {
@@ -65,6 +71,7 @@
6571
text-align: center;
6672
line-height: 48px;
6773
padding: 0 1em;
74+
background-color: color-darkest-grey;
6875
}
6976

7077
.currentTime {

src/lib/TranscriptEditor/MediaPlayer/Select.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ import PropTypes from 'prop-types';
33

44
import style from './Select.module.css';
55

6+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
7+
8+
import {
9+
faCaretDown
10+
} from '@fortawesome/free-solid-svg-icons';
11+
612
class Select extends React.Component {
713

814
render() {

src/lib/TranscriptEditor/MediaPlayer/Select.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
-webkit-appearance: none;
44
-moz-appearance: none;
55
appearance: none;
6-
height: 20px;
7-
width: 70px!important;
6+
height: 48px!important;
7+
width: 97px!important;
88
border-radius: 0;
9-
padding-left: 8px;
9+
padding: 32px;/*<-- */
1010
background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMS4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDEyNS4zMDQgMTI1LjMwNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTI1LjMwNCAxMjUuMzA0OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCI+CjxnPgoJPGc+CgkJPHBvbHlnb24gcG9pbnRzPSI2Mi42NTIsMTAzLjg5NSAwLDIxLjQwOSAxMjUuMzA0LDIxLjQwOSAgICIgZmlsbD0iI0ZGRkZGRiIvPgoJPC9nPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo=);
1111
background-repeat: no-repeat;
1212
background-position: 85% center;

src/lib/TranscriptEditor/MediaPlayer/index.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
}
1212

1313
.controlsSection {
14-
width: 98%;
15-
display: flex;
16-
flex-direction: column;
14+
/* width: 98%; */
15+
/* display: flex; */
16+
/* flex-direction: column; */
1717
}
1818

1919
.titleBox {

src/lib/TranscriptEditor/TimedTextEditor/WrapperBlock.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ class WrapperBlock extends React.Component {
9999
<div className={ style.WrapperBlock }>
100100
<div className={ style.markers }>
101101
{this.props.blockProps.showSpeakers ? speakerElement : ''}
102-
{this.props.blockProps.showTimecodes ? timecodeElement : ''}
102+
103+
{this.props.blockProps.showTimecodes ? timecodeElement: ''}
103104
</div>
104105
<div className={ style.text }>
105106
<EditorBlock { ...this.props } />

src/lib/TranscriptEditor/TimedTextEditor/WrapperBlock.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
margin-right: 0.5em;
4848
}
4949

50+
.time:hover{
51+
text-decoration: underline;
52+
/* color: blue; */
53+
}
54+
5055
.EditLabel {
5156
cursor: pointer;
5257
margin-right: 0.5em;

0 commit comments

Comments
 (0)