fix(ui) - replay navigation, autoplay alignment

This commit is contained in:
Shekar Siri 2021-12-05 02:19:34 +05:30
parent 6fe8eba32b
commit e1f435e858
3 changed files with 11 additions and 5 deletions

View file

@ -24,7 +24,7 @@ function Autoplay(props) {
name="sessionsLive"
onChange={ props.toggleAutoplay }
checked={ autoplay }
style={{ margin: '0 10px' }}
style={{ margin: '0px 10px 0px 12px'}}
/>
}
tooltip={'Autoplay'}

View file

@ -55,11 +55,13 @@ export default class PlayerBlockHeader extends React.PureComponent {
backHandler = () => {
const { history, siteId, funnelPage } = this.props;
if (funnelPage) {
if (funnelPage.get('issueId')) {
history.push(withSiteId(funnelIssueRoute(funnelPage.get('funnelId'), funnelPage.get('issueId')), siteId))
const funnelId = funnelPage && funnelPage.get('funnelId');
const issueId = funnelPage && funnelPage.get('issueId');
if (funnelId || issueId) {
if (issueId) {
history.push(withSiteId(funnelIssueRoute(funnelId, issueId), siteId))
} else
history.push(withSiteId(funnelRoute(funnelPage.get('funnelId')), siteId));
history.push(withSiteId(funnelRoute(funnelId), siteId));
} else
history.push(withSiteId(SESSIONS_ROUTE), siteId);
}

View file

@ -309,4 +309,8 @@
a:hover {
color: $teal;
}
.ui.toggle.checkbox {
min-height: 20px !important;
}