Skip to content

Commit

Permalink
feat: chanStrip slide in-out fdrom left
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Feb 4, 2020
1 parent f6872db commit 983cefb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
10 changes: 10 additions & 0 deletions client/assets/css/Channels.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
min-height: 760px;
}

.channels-body > .closedChanStrip {
margin-left: -630px;
transition: margin 300ms;
}

.channels-body > .openChanStrip {
margin-left: 0px;
transition: margin 800ms;
}

.channels-mix-body {
position: fixed;
z-index: 2;
Expand Down
10 changes: 7 additions & 3 deletions client/components/Channels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ class Channels extends React.Component<IChannelsInjectProps & Store> {
:
null
}
{(this.props.settings.showChanStrip >= 0 || this.props.settings.offtubeMode) ?
<ChanStrip faderIndex={this.props.settings.showChanStrip}/>
{(this.props.settings.showChanStrip >= 0) ?
<div className="openChanStrip">
<ChanStrip faderIndex={this.props.settings.showChanStrip}/>
</div>
:
null
<div className="closedChanStrip">
<ChanStrip faderIndex={this.props.settings.showChanStrip}/>
</div>
}
{(this.props.settings.showMonitorOptions >= 0) ?
<ChannelMonitorOptions faderIndex={this.props.settings.showMonitorOptions}/>
Expand Down

0 comments on commit 983cefb

Please sign in to comment.