Context menu on touch

This commit is contained in:
James Barnsley
2016-12-22 08:21:19 +13:00
parent de0dd770d5
commit 5c0c0187d1
3 changed files with 7 additions and 7 deletions

View File

@ -218,12 +218,12 @@ class ContextMenu extends React.Component{
}
var className = 'context-menu'
var trigger = 'click'
if (this.props.emulate_touch) {
className += ' touch'
trigger = 'touch'
var trigger = 'touch'
} else {
className += ' '+this.props.context_menu.trigger
var trigger = this.props.context_menu.trigger
}
var items = this.getItems(trigger)

View File

@ -1,7 +1,7 @@
import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { browserHistory, Link } from 'react-router'
import { hashHistory, Link } from 'react-router'
import { bindActionCreators } from 'redux'
import FontAwesome from 'react-fontawesome'
@ -271,7 +271,7 @@ class Settings extends React.Component{
<div className="input">
<ConfirmationButton className="destructive" content="Reset all settings" confirmingContent="Are you sure?" onConfirm={() => this.resetAllSettings()} />
&nbsp;&nbsp;
<button className="primary" onClick={ () => browserHistory.push(global.baseURL+'debug') }>
<button className="primary" onClick={ () => hashHistory.push(global.baseURL+'debug') }>
<FontAwesome name="flask" />&nbsp;Debugger
</button>
</div>

View File

@ -32,14 +32,14 @@
.option {
position: relative;
padding: 10px 16px 10px 34px;
padding: 6px 14px 6px 30px;
border-top: 1px solid lighten($dark_grey, 10%);
cursor: pointer;
.fa {
position: absolute;
top: 13px;
left: 12px;
top: 12px;
left: 10px;
font-size: 12px;
}