Skip to content

Commit 2854a20

Browse files
committed
mg added ff rewind and play buttons from MUI, did inline styling and updated scss
1 parent bcf59e2 commit 2854a20

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/app/containers/TravelContainer.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ function TravelContainer(props: TravelContainerProps): JSX.Element {
6868
<Button
6969
variant="contained"
7070
className='play-button'
71+
sx={{height: 25, p: 0, mr: 1, ml: 1}}
7172
type='button'
7273
// data-testid, prop for testing in RTL
7374
data-testid='play-button-test'
@@ -76,11 +77,11 @@ function TravelContainer(props: TravelContainerProps): JSX.Element {
7677
{playing ? 'Pause' : 'Play'}
7778
</Button>
7879
<MainSlider snapshotsLength={snapshotsLength} />
79-
<Button variant="contained" className='backward-button' onClick={() => dispatch(moveBackward())} type='button'>
80-
<FastRewindIcon sx={{xm: 1, color: '#000'}}/>
80+
<Button variant="contained" className='backward-button' onClick={() => dispatch(moveBackward())} type='button' sx={{height: 25, minWidth: 30, p: 0, mr: 1}}>
81+
<FastRewindIcon sx={{color: '#000'}}/>
8182
</Button>
82-
<Button variant="contained" className='forward-button' onClick={() => dispatch(moveForward())} type='button'>
83-
<FastForwardIcon />
83+
<Button variant="contained" className='forward-button' onClick={() => dispatch(moveForward())} type='button' sx={{height: 25, minWidth: 30, p: 0}}>
84+
<FastForwardIcon sx={{color: '#000'}}/>
8485
</Button>
8586
<Dropdown speeds={speeds} selectedSpeed={selectedSpeed} setSpeed={setSpeed} />
8687
</div>

src/app/styles/components/_buttons.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@
156156
border-radius: 5px;
157157
font-weight: 500;
158158
font-size: 16px;
159+
justify-content: center;
159160
}
160161

161162
.play-button:hover {
@@ -167,7 +168,8 @@
167168
.backward-button {
168169
width: 30px;
169170
height: 25px;
170-
margin: 7px;
171+
// margin: 7px;
172+
padding: 0px;
171173
color: $brand-color;
172174
border-color: transparent;
173175
background: $blue-color-gradient;

0 commit comments

Comments
 (0)