From d1b3b85584074e28bbb55d0e903f80f00b51df1a Mon Sep 17 00:00:00 2001 From: "Ella E." Date: Mon, 30 Dec 2024 18:09:04 -0700 Subject: [PATCH] DEV: Add element wrapper to the body and screenshot (#30497) --- .../components/dashboard-new-feature-item.gjs | 118 +++++++++--------- 1 file changed, 61 insertions(+), 57 deletions(-) diff --git a/app/assets/javascripts/admin/addon/components/dashboard-new-feature-item.gjs b/app/assets/javascripts/admin/addon/components/dashboard-new-feature-item.gjs index 11e83d33592..dd3f94eb17e 100644 --- a/app/assets/javascripts/admin/addon/components/dashboard-new-feature-item.gjs +++ b/app/assets/javascripts/admin/addon/components/dashboard-new-feature-item.gjs @@ -92,65 +92,69 @@ export default class DiscourseNewFeatureItem extends Component { {{/if}} - {{#if @item.screenshot_url}} - {{@item.title}} - {{/if}} - -
-
- - - {{#if @item.link}} - - {{i18n "admin.dashboard.new_features.learn_more"}} - - {{/if}} -
- {{#if @item.experiment_setting}} -
- - <:trigger> - - - <:content> -
-
- {{i18n - (if - this.experimentEnabled - "admin.dashboard.new_features.experiment_tooltip.title_enabled" - "admin.dashboard.new_features.experiment_tooltip.title_disabled" - ) - }} -
-
- {{htmlSafe - (i18n - (if - this.experimentEnabled - "admin.dashboard.new_features.experiment_tooltip.content_enabled" - "admin.dashboard.new_features.experiment_tooltip.content_disabled" - ) - ) - }} -
-
- -
+
+ {{#if @item.screenshot_url}} +
+ {{@item.title}}
{{/if}} + +
+
+ + + {{#if @item.link}} + + {{i18n "admin.dashboard.new_features.learn_more"}} + + {{/if}} +
+ {{#if @item.experiment_setting}} +
+ + <:trigger> + + + <:content> +
+
+ {{i18n + (if + this.experimentEnabled + "admin.dashboard.new_features.experiment_tooltip.title_enabled" + "admin.dashboard.new_features.experiment_tooltip.title_disabled" + ) + }} +
+
+ {{htmlSafe + (i18n + (if + this.experimentEnabled + "admin.dashboard.new_features.experiment_tooltip.content_enabled" + "admin.dashboard.new_features.experiment_tooltip.content_disabled" + ) + ) + }} +
+
+ +
+
+ {{/if}} +