center controls
This commit is contained in:
parent
88a84f252d
commit
9ef8dc2eac
@ -10,4 +10,9 @@
|
|||||||
.mainItem {
|
.mainItem {
|
||||||
composes: item;
|
composes: item;
|
||||||
flex: 2;
|
flex: 2;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls {
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import { Options } from './Options'
|
|||||||
import { PlayerControl } from './PlayerControl'
|
import { PlayerControl } from './PlayerControl'
|
||||||
|
|
||||||
import styles from './RsvpReader.css'
|
import styles from './RsvpReader.css'
|
||||||
import { PipeMarker } from './PivotMarker'
|
import { PipeMarker, BorderMarker } from './PivotMarker'
|
||||||
|
|
||||||
export const RsvpReader = () => {
|
export const RsvpReader = () => {
|
||||||
return (
|
return (
|
||||||
@ -16,12 +16,14 @@ export const RsvpReader = () => {
|
|||||||
<TextInput />
|
<TextInput />
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.mainItem}>
|
<div className={styles.mainItem}>
|
||||||
<PipeMarker>
|
<BorderMarker>
|
||||||
<Segment />
|
<Segment />
|
||||||
</PipeMarker>
|
</BorderMarker>
|
||||||
<SegmentControl>
|
<div className={styles.controls}>
|
||||||
<PlayerControl />
|
<SegmentControl>
|
||||||
</SegmentControl>
|
<PlayerControl />
|
||||||
|
</SegmentControl>
|
||||||
|
</div>
|
||||||
<Options></Options>
|
<Options></Options>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.item}>
|
<div className={styles.item}>
|
||||||
|
@ -19,7 +19,7 @@ import {
|
|||||||
export const SegmentControl = ({ children }) => {
|
export const SegmentControl = ({ children }) => {
|
||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
return (
|
return (
|
||||||
<div>
|
<>
|
||||||
<IconButton
|
<IconButton
|
||||||
title="Previous Sentence"
|
title="Previous Sentence"
|
||||||
onClick={() => dispatch(decrementSentence())}
|
onClick={() => dispatch(decrementSentence())}
|
||||||
@ -41,6 +41,6 @@ export const SegmentControl = ({ children }) => {
|
|||||||
title="Next Sentence"
|
title="Next Sentence"
|
||||||
onClick={() => dispatch(incrementSentence())}
|
onClick={() => dispatch(incrementSentence())}
|
||||||
/>
|
/>
|
||||||
</div>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user