FIX: hide details

This commit is contained in:
Krzysztof Kotlarek 2024-12-06 08:43:44 +11:00
parent f1a5e4d968
commit 66b8ed4f80
3 changed files with 15 additions and 5 deletions

View File

@ -36,7 +36,10 @@
{{#if this.showEmbeddingCode}}
<div class="admin-embedding-index__code">
{{html-safe (i18n "admin.embedding.sample")}}
<HighlightedCode @code={{this.embeddingCode}} @lang="html" />
<details>
<summary>{{i18n "admin.embedding.configuration_snippet"}}</summary>
{{html-safe (i18n "admin.embedding.sample")}}
<HighlightedCode @code={{this.embeddingCode}} @lang="html" />
</details>
</div>
{{/if}}

View File

@ -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);
}
}
}

View File

@ -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"