-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.5.4
-
None
-
MOODLE_405_STABLE
Static elements in mforms look ugly due to vertical misalignment. My wild guess would be that is because developers tried to align text editing boxes with element labels by adding top padding, but then fixed the consequences in some elements only by adding pt-0 to checkboxes and radios and forgot about static elements.
My workaround is to modify lib/form/templates/element-template.mustache:
<div class="col-md-3 col-form-label d-flex pb-0 pe-md-0 {{#element.staticlabel}}pt-0{{/element.staticlabel}}">
|
The other option would be to add padding above the static text.
.mform .fitem .felement[data-fieldtype=static] {
|
padding-top: 0.5rem;
|
}
|
Not sure what is the correct way to fix this because I do not understand the current logic behind mforms templates...
- Discovered while testing
-
MDL-85312 Custom user profile menu multi-language issue when locked
-
- Waiting for peer review
-