From 048dea01f4c64fcdcdb593c8c9c1861e9c0d7448 Mon Sep 17 00:00:00 2001
From: Rafael dos Santos Silva <xfalcox@gmail.com>
Date: Mon, 26 Sep 2016 16:14:41 -0300
Subject: [PATCH] Fix tags separation on new category page

---
 .../templates/components/latest-topic-list-item.hbs       | 8 +++++---
 app/assets/stylesheets/common/base/tagging.scss           | 4 ++++
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/app/assets/javascripts/discourse/templates/components/latest-topic-list-item.hbs b/app/assets/javascripts/discourse/templates/components/latest-topic-list-item.hbs
index a4d228365c2..52247164511 100644
--- a/app/assets/javascripts/discourse/templates/components/latest-topic-list-item.hbs
+++ b/app/assets/javascripts/discourse/templates/components/latest-topic-list-item.hbs
@@ -17,9 +17,11 @@
         <tr>
           {{category-link topic.category}}
           {{#if topic.tags}}
-            {{#each topic.visibleListTags as |tag|}}
-              {{discourse-tag tag}}
-            {{/each}}
+            <div class="discourse-tags">
+              {{#each topic.visibleListTags as |tag|}}
+                {{discourse-tag tag}}
+              {{/each}}
+            </div>
           {{/if}}
         </tr>
       </td>
diff --git a/app/assets/stylesheets/common/base/tagging.scss b/app/assets/stylesheets/common/base/tagging.scss
index 1cca25a7abf..332614c4ac1 100644
--- a/app/assets/stylesheets/common/base/tagging.scss
+++ b/app/assets/stylesheets/common/base/tagging.scss
@@ -110,6 +110,10 @@ $tag-color: scale-color($primary, $lightness: 40%);
   }
 }
 
+.categories-list .topic-list-latest .discourse-tags {
+  display: inline-block;
+}
+
 .mobile-view .topic-list-item .discourse-tags {
   display: inline-block;
   font-size: 0.9em;