mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Display exact date on hover (#10536)
This commit is contained in:
@@ -11,7 +11,7 @@ div
|
|||||||
)
|
)
|
||||||
| {{msg.user}}
|
| {{msg.user}}
|
||||||
.svg-icon(v-html="tierIcon", v-if='showShowTierStyle')
|
.svg-icon(v-html="tierIcon", v-if='showShowTierStyle')
|
||||||
p.time {{msg.timestamp | timeAgo}}
|
p.time(v-b-tooltip="", :title="msg.timestamp | date") {{msg.timestamp | timeAgo}}
|
||||||
.text(v-markdown='msg.text')
|
.text(v-markdown='msg.text')
|
||||||
hr
|
hr
|
||||||
.action(@click='like()', v-if='!inbox && msg.likes', :class='{active: msg.likes[user._id]}')
|
.action(@click='like()', v-if='!inbox && msg.likes', :class='{active: msg.likes[user._id]}')
|
||||||
@@ -72,6 +72,7 @@ div
|
|||||||
.time {
|
.time {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #878190;
|
color: #878190;
|
||||||
|
width: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
@@ -165,7 +166,7 @@ export default {
|
|||||||
return moment(value).fromNow();
|
return moment(value).fromNow();
|
||||||
},
|
},
|
||||||
date (value) {
|
date (value) {
|
||||||
// @TODO: Add user preference
|
// @TODO: Vue doesn't support this so we cant user preference
|
||||||
return moment(value).toDate();
|
return moment(value).toDate();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user