From 40eea40d698fefa0c94384b2624337b90bc69c2b Mon Sep 17 00:00:00 2001 From: Kris Date: Thu, 29 Feb 2024 17:48:47 -0500 Subject: [PATCH] UX: clean up tag info styles, remove mobile stylesheet (#25973) --- .../discourse/app/components/tag-info.hbs | 48 +++++++++-------- .../stylesheets/common/base/tagging.scss | 53 ++++++++----------- app/assets/stylesheets/mobile/_index.scss | 1 - app/assets/stylesheets/mobile/tagging.scss | 9 ---- 4 files changed, 47 insertions(+), 64 deletions(-) delete mode 100644 app/assets/stylesheets/mobile/tagging.scss diff --git a/app/assets/javascripts/discourse/app/components/tag-info.hbs b/app/assets/javascripts/discourse/app/components/tag-info.hbs index d7d944bd9de..148b1246600 100644 --- a/app/assets/javascripts/discourse/app/components/tag-info.hbs +++ b/app/assets/javascripts/discourse/app/components/tag-info.hbs @@ -49,23 +49,25 @@ >{{d-icon "pencil-alt"}} {{/if}} -
- {{html-safe this.tagInfo.description}} -
+ {{#if this.tagInfo.description}} +
+ {{html-safe this.tagInfo.description}} +
+ {{/if}} {{/if}}
- {{#if this.tagInfo.tag_group_names}} + {{~#if this.tagInfo.tag_group_names}} {{this.tagGroupsInfo}} - {{/if}} - {{#if this.tagInfo.categories}} + {{/if~}} + {{~#if this.tagInfo.categories}} {{this.categoriesInfo}}
{{#each this.tagInfo.categories as |category|}} {{category-link category}} {{/each}} - {{/if}} - {{#if this.nothingToShow}} + {{/if~}} + {{~#if this.nothingToShow}} {{#if this.tagInfo.category_restricted}} {{i18n "tagging.category_restricted"}} {{else}} @@ -74,7 +76,7 @@ {{html-safe (i18n "tagging.staff_info" basePath=(base-path))}} {{/if}} {{/if}} - {{/if}} + {{/if~}}
{{#if this.tagInfo.synonyms}}
@@ -112,7 +114,7 @@ {{#if this.editSynonymsMode}}
-
+
- + {{#if this.newSynonyms}} + + {{/if}}
{{/if}} {{#if this.canAdminTag}} -
- -
+ +