@@ -43,41 +43,6 @@ class PlayerControls extends React.Component {
4343 render ( ) {
4444 return (
4545 < div className = { style . playerControls } >
46- < button
47- className = { style . playerButton }
48- onClick = { this . props . rollback } >
49- < FontAwesomeIcon icon = { faUndo } />
50- </ button >
51-
52- < button
53- className = { style . playerButton }
54- onMouseDown = { this . setIntervalHelperBackward }
55- onMouseUp = { this . clearIntervalHelper }
56- onClick = { ( ) => { this . props . skipBackward ( ) ; } } >
57- < FontAwesomeIcon icon = { faBackward } />
58- </ button >
59-
60- < button
61- className = { style . playerButton }
62- onClick = { this . props . playMedia } >
63- { this . props . isPlaying ? < FontAwesomeIcon icon = { faPause } /> : < FontAwesomeIcon icon = { faPlay } /> }
64- </ button >
65-
66- < button
67- className = { style . playerButton }
68- onMouseDown = { this . setIntervalHelperForward }
69- onMouseUp = { this . clearIntervalHelper }
70- onClick = { ( ) => { this . props . skipForward ( ) ; } } >
71- < FontAwesomeIcon icon = { faForward } />
72- </ button >
73-
74- < span className = { style . playBackRate } >
75- < Select
76- options = { this . props . playbackRateOptions }
77- currentValue = { this . props . playbackRate . toString ( ) }
78- name = { 'playbackRate' }
79- handleChange = { this . props . setPlayBackRate } />
80- </ span >
8146
8247 < div className = { style . timeBox } >
8348 < span className = { style . currentTime }
@@ -87,18 +52,58 @@ class PlayerControls extends React.Component {
8752 < span className = { style . duration } > { this . props . duration } </ span >
8853 </ div >
8954
90- < button
91- className = { style . playerButton }
92- onClick = { this . props . handleSaveTranscript } >
93- < FontAwesomeIcon icon = { faSave } />
94- </ button >
55+ < div className = { style . btnsGroup } >
56+ < button
57+ className = { style . playerButton }
58+ onClick = { this . props . rollback } >
59+ < FontAwesomeIcon icon = { faUndo } />
60+ </ button >
61+
62+ < button
63+ className = { style . playerButton }
64+ onMouseDown = { this . setIntervalHelperBackward }
65+ onMouseUp = { this . clearIntervalHelper }
66+ onClick = { ( ) => { this . props . skipBackward ( ) ; } } >
67+ < FontAwesomeIcon icon = { faBackward } />
68+ </ button >
69+
70+ < button
71+ className = { style . playerButton }
72+ onClick = { this . props . playMedia } >
73+ { this . props . isPlaying ? < FontAwesomeIcon icon = { faPause } /> : < FontAwesomeIcon icon = { faPlay } /> }
74+ </ button >
75+
76+ < button
77+ className = { style . playerButton }
78+ onMouseDown = { this . setIntervalHelperForward }
79+ onMouseUp = { this . clearIntervalHelper }
80+ onClick = { ( ) => { this . props . skipForward ( ) ; } } >
81+ < FontAwesomeIcon icon = { faForward } />
82+ </ button >
83+ </ div >
9584
96- < button
97- className = { style . playerButton }
98- onClick = { this . props . pictureInPicture }
99- >
100- < FontAwesomeIcon icon = { faTv } />
101- </ button >
85+ < div className = { style . btnsGroup } >
86+ < span className = { style . playBackRate } >
87+ < Select
88+ options = { this . props . playbackRateOptions }
89+ currentValue = { this . props . playbackRate . toString ( ) }
90+ name = { 'playbackRate' }
91+ handleChange = { this . props . setPlayBackRate } />
92+ </ span >
93+
94+ < button
95+ className = { style . playerButton }
96+ onClick = { this . props . handleSaveTranscript } >
97+ < FontAwesomeIcon icon = { faSave } />
98+ </ button >
99+
100+ < button
101+ className = { style . playerButton }
102+ onClick = { this . props . pictureInPicture }
103+ >
104+ < FontAwesomeIcon icon = { faTv } />
105+ </ button >
106+ </ div >
102107
103108 < VolumeControl
104109 handleMuteVolume = { this . props . handleMuteVolume }
@@ -109,7 +114,7 @@ class PlayerControls extends React.Component {
109114 textOverflow : 'ellipsis' ,
110115 whiteSpace : 'nowrap' ,
111116 overflow : 'hidden' ,
112- width : '40vw ' ,
117+ width : '20vw ' ,
113118 display : 'inline-block' ,
114119 marginLeft : '1em'
115120 } } >
0 commit comments