fix: flow cannot scroll after post

update fold UI
This commit is contained in:
thuhole
2020-07-22 01:45:08 +08:00
parent 1e41278ba1
commit ee84237758
2 changed files with 2 additions and 2 deletions

View File

@@ -867,7 +867,7 @@ class FlowItemRow extends PureComponent {
<span className="box-header-tag">{this.props.info.tag}</span> <span className="box-header-tag">{this.props.info.tag}</span>
)} )}
<Time stamp={this.props.info.timestamp} short={true} /> <Time stamp={this.props.info.timestamp} short={true} />
<span className="box-header-badge">已隐藏</span> <span className="box-header-badge">{this.needFold ? '已隐藏' : '已屏蔽'}</span>
<div style={{ clear: 'both' }} /> <div style={{ clear: 'both' }} />
</div> </div>
</div> </div>

View File

@@ -145,7 +145,7 @@ class ControlBar extends PureComponent {
<PostForm <PostForm
token={token} token={token}
on_complete={() => { on_complete={() => {
this.props.show_sidebar(null, null); this.props.show_sidebar(null, null, 'clear');
this.do_refresh(); this.do_refresh();
}} }}
/>, />,