UX: Consistent placement of category-title-before plugin outlet (#8010)

UX: Consistent placement of category-title-before plugin outlet (#8010)

diff --git a/app/assets/javascripts/discourse/templates/components/categories-boxes-with-topics.hbs b/app/assets/javascripts/discourse/templates/components/categories-boxes-with-topics.hbs
index 7a79371..6df50c4 100644
--- a/app/assets/javascripts/discourse/templates/components/categories-boxes-with-topics.hbs
+++ b/app/assets/javascripts/discourse/templates/components/categories-boxes-with-topics.hbs
@@ -11,10 +11,10 @@
           {{/if}}
 
           <h3>
+            {{category-title-before category=c}}
             {{#if c.read_restricted}}
               {{d-icon 'lock'}}
             {{/if}}
-            {{category-title-before category=c}}
             {{c.name}}
           </h3>
         </a>
diff --git a/app/assets/javascripts/discourse/templates/components/category-title-link.hbs b/app/assets/javascripts/discourse/templates/components/category-title-link.hbs
index 542a900..f973a28 100644
--- a/app/assets/javascripts/discourse/templates/components/category-title-link.hbs
+++ b/app/assets/javascripts/discourse/templates/components/category-title-link.hbs
@@ -1,10 +1,9 @@
-{{category-title-before category=category}}
 <a class="category-title-link" href={{category.url}}>
   <div class="category-text-title">
+    {{category-title-before category=category}}
     {{#if category.read_restricted}}
       {{d-icon 'lock'}}
     {{/if}}
-
     <span class="category-name">{{dir-span category.name}}</span>
   </div>
   {{#if category.uploaded_logo.url}}
diff --git a/app/assets/stylesheets/mobile/topic-list.scss b/app/assets/stylesheets/mobile/topic-list.scss
index 84930d0..cc0d77e 100644
--- a/app/assets/stylesheets/mobile/topic-list.scss
+++ b/app/assets/stylesheets/mobile/topic-list.scss
@@ -278,7 +278,6 @@ tr.category-topic-link {
 
   h3 {
     max-width: 100%;
-    display: inline-block;
     font-size: $font-up-2;
     padding: 0 0 0 10px;
     .d-icon {

GitHub sha: 82e07cb0

1 Like