Browse Source

optimize time display

dev
thuhole 5 years ago
parent
commit
fc80a065a0
  1. 6
      src/Flows.js
  2. 2
      src/Message.js
  3. 2
      src/infrastructure

6
src/Flows.js

@ -99,7 +99,7 @@ class Reply extends PureComponent {
{this.props.info.tag}
</span>
}
<Time stamp={this.props.info.timestamp} />
<Time stamp={this.props.info.timestamp} short={false} />
</div>
<div className="box-content">
<HighlightedMarkdown author={author}
@ -167,7 +167,7 @@ class FlowItem extends PureComponent {
{props.info.tag}
</span>
}
<Time stamp={props.info.timestamp} />
<Time stamp={props.info.timestamp} short={!props.img_clickable} />
</div>
<div className="box-content">
<HighlightedMarkdown text={props.fold ? '_单击以查看树洞_' : props.info.text} color_picker={props.color_picker} show_pid={props.show_pid} />
@ -190,7 +190,7 @@ class FlowItem extends PureComponent {
{/*{props.info.type==='audio' && <AudioWidget src={AUDIO_BASE+props.info.url} />}*/}
</div>
{!!(props.attention && props.info.variant.latest_reply) &&
<p className="box-footer">最新回复 <Time stamp={props.info.variant.latest_reply} /></p>
<p className="box-footer">最新回复 <Time stamp={props.info.variant.latest_reply} short={false} /></p>
}
</div>
</div>

2
src/Message.js

@ -51,7 +51,7 @@ export class MessageViewer extends PureComponent {
return this.state.msg.map((msg)=>(
<div className="box">
<div className="box-header">
<Time stamp={msg.timestamp} />
<Time stamp={msg.timestamp} short={false} />
&nbsp; <b>{msg.title}</b>
</div>
<div className="box-content">

2
src/infrastructure

@ -1 +1 @@
Subproject commit f8d3a5301358293f91b916cb3bc298b9a2f5fa05
Subproject commit 43b48087b181beef7b6d69163914d6ca799a12b4
Loading…
Cancel
Save