mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
721d7202a0
no issue Added truncation to custom theme setting description to prevent overly long custom setting descriptions from diminishing the settings UX
18 lines
880 B
Handlebars
18 lines
880 B
Handlebars
<div class="gh-stack-item {{if (eq @index 0) "gh-setting-first" "gh-setting"}}">
|
|
<div class="flex-grow-1">
|
|
<div class="flex justify-between items-center relative">
|
|
<span class="gh-setting-title mb0" for={{this.checkboxId}}>
|
|
{{humanize-setting-key @setting.key}}
|
|
</span>
|
|
<div class="for-switch x-small">
|
|
<label for={{this.checkboxId}} class="switch">
|
|
<input type="checkbox" class="gh-input" id={{this.checkboxId}} checked={{@setting.value}} {{on "input" this.toggleValue}}>
|
|
<span class="input-toggle-component mt1"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
{{#if @setting.description}}
|
|
<div class="gh-setting-desc" style="margin-top: 1px">{{truncate @setting.description 100}}</div>
|
|
{{/if}}
|
|
</div>
|
|
</div> |