FIX: Regression with time-gap showing decimals and no clearfix

This commit is contained in:
Robin Ward 2016-02-08 12:14:34 -05:00
parent d1e85bdd8b
commit 2b1e7306e1
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ export default createWidget('post-stream', {
// Handle time gaps
const curTime = new Date(transformed.created_at).getTime();
if (prevDate) {
const daysSince = (curTime - prevDate) / DAY;
const daysSince = Math.floor((curTime - prevDate) / DAY);
if (daysSince > this.siteSettings.show_time_gap_days) {
result.push(this.attach('time-gap', { daysSince }));
}

View File

@ -17,7 +17,7 @@ function description(attrs) {
}
export default createWidget('time-gap', {
tagName: 'div.time-gap.small-action',
tagName: 'div.time-gap.small-action.clearfix',
html(attrs) {
return [h('div.topic-avatar', iconNode('clock-o')),