update blur effect

This commit is contained in:
xmcp
2020-01-10 12:00:24 +08:00
parent 86ab7d130f
commit 00bec9f93d
3 changed files with 49 additions and 18 deletions

View File

@@ -27,7 +27,7 @@ export class Sidebar extends PureComponent {
render() {
let [cur_title,cur_content]=this.props.stack[this.props.stack.length-1];
return (
<div className={cur_title!==null ? 'sidebar-on' : ''}>
<div className={'sidebar-container '+(cur_title!==null ? 'sidebar-on' : 'sidebar-off')}>
<div className="sidebar-shadow" onClick={this.do_back_bound} onTouchEnd={(e)=>{e.preventDefault();e.target.click();}} />
<div ref={this.sidebar_ref} className="sidebar">
{cur_content}