From 950c9e50ac31833e81a91a02d9f8a3ef05506ce6 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 23 Aug 2017 14:47:09 -0400 Subject: [PATCH] Add wrapper div to aid in styling --- .../javascripts/discourse/widgets/topic-map.js.es6 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/topic-map.js.es6 b/app/assets/javascripts/discourse/widgets/topic-map.js.es6 index ccba2891a28..0564351b568 100644 --- a/app/assets/javascripts/discourse/widgets/topic-map.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-map.js.es6 @@ -66,15 +66,19 @@ createWidget('topic-map-summary', { contents.push(h('li', [ h('h4', I18n.t('created_lowercase')), - avatarFor('tiny', { username: attrs.createdByUsername, template: attrs.createdByAvatarTemplate }), - dateNode(attrs.topicCreatedAt) + h('div.topic-map-post.created-at', [ + avatarFor('tiny', { username: attrs.createdByUsername, template: attrs.createdByAvatarTemplate }), + dateNode(attrs.topicCreatedAt) + ]) ] )); contents.push(h('li', h('a', { attributes: { href: attrs.lastPostUrl } }, [ h('h4', I18n.t('last_reply_lowercase')), - avatarFor('tiny', { username: attrs.lastPostUsername, template: attrs.lastPostAvatarTemplate }), - dateNode(attrs.lastPostAt) + h('div.topic-map-post.last-reply', [ + avatarFor('tiny', { username: attrs.lastPostUsername, template: attrs.lastPostAvatarTemplate }), + dateNode(attrs.lastPostAt) + ]) ]) )); contents.push(h('li', [