0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-23 01:40:29 +01:00

Merge branch 'master' into realtime-validation

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-01-30 23:18:43 +05:30
Commit fa57bb8a5b
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -6,7 +6,8 @@ export default registerUnbound("char-counter", function(body, maxLength) {
let finalString; let finalString;
if (maxLength) { if (maxLength) {
finalString = `<div class="body-length">${bodyLength} / ${I18n.t('wizard.x_characters', { count: parseInt(maxLength) })}</div>`; let isOverMax = bodyLength > maxLength ? "true" : "false";
finalString = `<div class="body-length" data-length=${bodyLength} data-over-max=${isOverMax}>${bodyLength} / ${I18n.t('wizard.x_characters', { count: parseInt(maxLength) })}</div>`;
} else { } else {
finalString = `<div class="body-length">${I18n.t('wizard.x_characters', { count: parseInt(bodyLength) })}</div>`; finalString = `<div class="body-length">${I18n.t('wizard.x_characters', { count: parseInt(bodyLength) })}</div>`;
} }

Datei anzeigen

@ -132,7 +132,7 @@
.d-editor-input { .d-editor-input {
border: 0; border: 0;
padding: 10px; padding: 10px;
height: 100%; height: unset; // overrides core css
overflow-x: hidden; overflow-x: hidden;
resize: none; resize: none;
} }