Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +01:00
fixed formatting for composer field type
Dieser Commit ist enthalten in:
Ursprung
5f121215d5
Commit
36094d70d6
4 geänderte Dateien mit 16 neuen und 7 gelöschten Zeilen
|
@ -18,7 +18,7 @@ export default {
|
||||||
|
|
||||||
@discourseComputed("field.type")
|
@discourseComputed("field.type")
|
||||||
textType(fieldType) {
|
textType(fieldType) {
|
||||||
return ['text', 'textarea', 'composer'].includes(fieldType);
|
return ['text', 'textarea'].includes(fieldType);
|
||||||
},
|
},
|
||||||
|
|
||||||
cookedDescription: function () {
|
cookedDescription: function () {
|
||||||
|
|
|
@ -7,6 +7,12 @@
|
||||||
togglePreview=(action "togglePreview")
|
togglePreview=(action "togglePreview")
|
||||||
afterRefresh=(action "afterRefresh")}}
|
afterRefresh=(action "afterRefresh")}}
|
||||||
|
|
||||||
|
<div class="bottom-bar">
|
||||||
<button class='wizard-btn toggle-preview' {{action 'togglePreview'}}>
|
<button class='wizard-btn toggle-preview' {{action 'togglePreview'}}>
|
||||||
<span class="d-button-label">{{wizard-i18n togglePreviewLabel}}</span>
|
<span class="d-button-label">{{wizard-i18n togglePreviewLabel}}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
{{#if field.char_counter}}
|
||||||
|
{{char-counter field.value field.max_length}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
{{#if field.char_counter}}
|
{{#if field.char_counter}}
|
||||||
{{#if textType}}
|
{{#if textType}}
|
||||||
{{char-counter field.value}}
|
{{char-counter field.value field.max_length}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
|
@ -50,10 +50,6 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-wizard .wizard-field-composer .toggle-preview {
|
|
||||||
margin-top: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.d-editor-textarea-wrapper,
|
.d-editor-textarea-wrapper,
|
||||||
.d-editor-preview-wrapper {
|
.d-editor-preview-wrapper {
|
||||||
background-color: var(--secondary);
|
background-color: var(--secondary);
|
||||||
|
@ -230,3 +226,10 @@
|
||||||
bottom: -40px;
|
bottom: -40px;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bottom-bar {
|
||||||
|
display: flex;
|
||||||
|
justify-content:space-between;
|
||||||
|
margin-top: 20px;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
Laden …
In neuem Issue referenzieren