improve sidebar on small screen

This commit is contained in:
xmcp
2019-08-05 17:24:23 +08:00
parent b3435bc6c5
commit 99aad0d7d4
5 changed files with 18 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ export class Sidebar extends PureComponent {
render() {
return (
<div className={this.props.title!==null ? 'sidebar-on' : ''}>
<div className="sidebar-shadow" onClick={this.props.do_close} />
<div className="sidebar-shadow" onClick={this.props.do_close} onTouchEnd={(e)=>{e.preventDefault();e.target.click();}} />
<div ref={this.sidebar_ref} className="sidebar">
{this.props.content}
</div>