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")
|
||||
textType(fieldType) {
|
||||
return ['text', 'textarea', 'composer'].includes(fieldType);
|
||||
return ['text', 'textarea'].includes(fieldType);
|
||||
},
|
||||
|
||||
cookedDescription: function () {
|
||||
|
|
|
@ -7,6 +7,12 @@
|
|||
togglePreview=(action "togglePreview")
|
||||
afterRefresh=(action "afterRefresh")}}
|
||||
|
||||
<div class="bottom-bar">
|
||||
<button class='wizard-btn toggle-preview' {{action 'togglePreview'}}>
|
||||
<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 textType}}
|
||||
{{char-counter field.value}}
|
||||
{{char-counter field.value field.max_length}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
|
|
|
@ -50,10 +50,6 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
.custom-wizard .wizard-field-composer .toggle-preview {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.d-editor-textarea-wrapper,
|
||||
.d-editor-preview-wrapper {
|
||||
background-color: var(--secondary);
|
||||
|
@ -230,3 +226,10 @@
|
|||
bottom: -40px;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.bottom-bar {
|
||||
display: flex;
|
||||
justify-content:space-between;
|
||||
margin-top: 20px;
|
||||
align-items: center;
|
||||
}
|
||||
|
|
Laden …
In neuem Issue referenzieren