From 66b8ed4f801c777be26615246752ac60274e9a6f Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Fri, 6 Dec 2024 08:43:44 +1100 Subject: [PATCH] FIX: hide details --- .../admin/addon/templates/embedding-index.hbs | 7 +++++-- app/assets/stylesheets/common/admin/customize.scss | 12 +++++++++--- config/locales/client.en.yml | 1 + 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/admin/addon/templates/embedding-index.hbs b/app/assets/javascripts/admin/addon/templates/embedding-index.hbs index e0649c9d983..d0fb9d0f125 100644 --- a/app/assets/javascripts/admin/addon/templates/embedding-index.hbs +++ b/app/assets/javascripts/admin/addon/templates/embedding-index.hbs @@ -36,7 +36,10 @@ {{#if this.showEmbeddingCode}}
- {{html-safe (i18n "admin.embedding.sample")}} - +
+ {{i18n "admin.embedding.configuration_snippet"}} + {{html-safe (i18n "admin.embedding.sample")}} + +
{{/if}} \ No newline at end of file diff --git a/app/assets/stylesheets/common/admin/customize.scss b/app/assets/stylesheets/common/admin/customize.scss index 2688ab734f7..fa15d8c5e84 100644 --- a/app/assets/stylesheets/common/admin/customize.scss +++ b/app/assets/stylesheets/common/admin/customize.scss @@ -897,10 +897,16 @@ } } -.admin-embeddable-host-item__delete { - color: var(--danger); - svg.d-icon { +.admin-embedding { + details { + margin-top: 1em; + } + + .admin-embeddable-host-item__delete { color: var(--danger); + svg.d-icon { + color: var(--danger); + } } } diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index ee3715a9cbd..efdc2ad59cf 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -7336,6 +7336,7 @@ en: crawler_settings_saved: "Crawler settings saved." back: "Back to Embedding" more_options: "More options" + configuration_snippet: "Configuration Snippet" host_form: add_header: "Add host" edit_header: "Edit host"