0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 23:31:11 +02:00

fixed formatting for composer field type

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-01-19 12:21:37 +05:30
Ursprung 5f121215d5
Commit 36094d70d6
4 geänderte Dateien mit 16 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -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 () {

Datei anzeigen

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

Datei anzeigen

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

Datei anzeigen

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