Skip to content

Commit

Permalink
Scrubber: Change component order
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed May 12, 2016
1 parent 48b5d59 commit 7177e00
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion less/scrubber.less
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
position: relative;
flex: 1;
background-color: white;
margin: 0 @scrubber-component-margin;
margin: 0 @scrubber-component-margin 0 0;
height: 100%;
width: 100%;
border: solid @scrubber-inactive-border-width @scrubber-inactive-border-color;
Expand Down
25 changes: 14 additions & 11 deletions ts/components/Scrubber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,28 +148,31 @@ class Scrubber extends React.Component<ScrubberProps, ScrubberState> {
<i className="joust-fa joust-fa-eye"></i>
</button>;

var rewind = <button onClick={this.rewind.bind(this) } disabled={!this.state.canRewind} title="Rewind">
<i className="joust-fa joust-fa-fast-backward"></i>
</button>;

var swap = <button onClick={this.props.swapPlayers} disabled={!this.state.canInteract} title="Swap players">
<i className="joust-fa joust-fa-unsorted"></i>
</button>;

return (
<div className="joust-scrubber">
{playpause}
<button onClick={this.rewind.bind(this) } disabled={!this.state.canRewind} title="Rewind">
<i className="joust-fa joust-fa-fast-backward"></i>
</button>
<SpeedSelector speed={this.state.speed}
speeds={[1, 1.5, 2, 4, 8, 16]}
selectSpeed={this.selectSpeed}
disabled={!this.state.canInteract}
/>
<Timeline duration={this.props.scrubber.getDuration() }
at={this.props.scrubber.getCurrentTime() }
seek={this.props.scrubber.seek.bind(this.props.scrubber) }
turnMap={this.props.scrubber.getHistory().turnMap}
swapPlayers={this.props.isSwapped}
ref={(inhibitor) => this.props.scrubber.setInhibitor(inhibitor) }
/>
<SpeedSelector speed={this.state.speed}
speeds={[1, 1.5, 2, 4, 8, 16]}
selectSpeed={this.selectSpeed}
disabled={!this.state.canInteract}
/>
{swap}
{reveal}
<button onClick={this.props.swapPlayers} disabled={!this.state.canInteract} title="Swap players">
<i className="joust-fa joust-fa-unsorted"></i>
</button>
{fullscreen}
</div>
);
Expand Down

0 comments on commit 7177e00

Please sign in to comment.