1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed #33750 -- Fixed timezone warning alignment with help texts.

Previously help_text was wrapped in a paragraph, but the change to div
broke the alignment, refs #27207.
This commit is contained in:
Florian Demmer 2022-06-01 11:41:15 +02:00 committed by GitHub
parent 46efd03d26
commit f3e2bb0833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,10 +90,9 @@
}
message = interpolate(message, [timezoneOffset]);
const warning = document.createElement('span');
warning.className = warningClass;
const warning = document.createElement('div');
warning.classList.add('help', warningClass);
warning.textContent = message;
inp.parentNode.appendChild(document.createElement('br'));
inp.parentNode.appendChild(warning);
},
// Add clock widget to a given field