Browse Source

minor change

closed-social-v3
欧醚 3 years ago
parent
commit
57c905a689
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      app/javascript/mastodon/features/status/index.js

+ 7
- 7
app/javascript/mastodon/features/status/index.js View File

@ -163,7 +163,7 @@ const makeMapStateToProps = () => {
const root_status = ancestorsIds.size? getStatus(state, {id: ancestorsIds.get(0)}) : status; const root_status = ancestorsIds.size? getStatus(state, {id: ancestorsIds.get(0)}) : status;
rootAcct = root_status? root_status.getIn(['account', 'id']) : null; rootAcct = root_status? root_status.getIn(['account', 'id']) : null;
if(rootAcct == treeAcct) { if(rootAcct == treeAcct) {
deep = ancestorsIds.size;
deep = ancestorsIds.size;
descendantsIds = state.getIn(['contexts', 'replies', status.get('id')]); descendantsIds = state.getIn(['contexts', 'replies', status.get('id')]);
if(descendantsIds) if(descendantsIds)
descendantsIds = descendantsIds.reverse(); descendantsIds = descendantsIds.reverse();
@ -592,7 +592,7 @@ class Status extends ImmutablePureComponent {
showBackButton showBackButton
multiColumn={multiColumn} multiColumn={multiColumn}
extraButton={( extraButton={(
<button className='column-header__button' onClick={this.handleShowTree} aria-pressed={status.get('hidden') ? 'false' : 'true'}><Icon id={this.state.showTree ? 'eye-slash' : 'eye'} /></button>
<button className='column-header__button' onClick={this.handleShowTree}><Icon id={this.state.showTree ? 'eye-slash' : 'eye'} /></button>
)} )}
/> />
@ -607,7 +607,7 @@ class Status extends ImmutablePureComponent {
<Tree <Tree
data={treeData} data={treeData}
height={800} height={800}
width={svgWidth+80}
width={svgWidth+80}
animated animated
keyProp = {"statusId"} keyProp = {"statusId"}
textProps={{ textProps={{
@ -615,11 +615,11 @@ class Status extends ImmutablePureComponent {
y: -7 y: -7
}} }}
gProps={{ gProps={{
className: 'node',
onClick: this.handleNodeClick
}}
className: 'node',
onClick: this.handleNodeClick
}}
svgProps={{ svgProps={{
className: 'tree-svg'
className: 'tree-svg'
}}/> }}/>
: :
<DetailedStatus <DetailedStatus

Loading…
Cancel
Save