mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
Merge pull request #1362 from mabashian/933-form-checkboxes-too-wide
Make checkbox labels the width of their contents not their parent
This commit is contained in:
commit
1fc6a34e62
@ -879,7 +879,6 @@ input[type="checkbox"].checkbox-no-label {
|
|||||||
|
|
||||||
.checkbox-options {
|
.checkbox-options {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
padding-right: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Display list actions next to search widget */
|
/* Display list actions next to search widget */
|
||||||
|
@ -788,3 +788,8 @@ input[type='radio']:checked:before {
|
|||||||
border-color: @b7grey;
|
border-color: @b7grey;
|
||||||
background-color: @ebgrey;
|
background-color: @ebgrey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.Form-checkboxRow {
|
||||||
|
display: flex;
|
||||||
|
clear: left;
|
||||||
|
}
|
||||||
|
@ -599,6 +599,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
label = (includeLabel !== undefined && includeLabel === false) ? false : true;
|
label = (includeLabel !== undefined && includeLabel === false) ? false : true;
|
||||||
|
|
||||||
if (label) {
|
if (label) {
|
||||||
|
html += "<span class=\"Form-checkboxRow\">";
|
||||||
html += "<label class=\"";
|
html += "<label class=\"";
|
||||||
html += (field.inline === undefined || field.inline === true) ? "checkbox-inline" : "";
|
html += (field.inline === undefined || field.inline === true) ? "checkbox-inline" : "";
|
||||||
html += (field.labelClass) ? " " + field.labelClass : "";
|
html += (field.labelClass) ? " " + field.labelClass : "";
|
||||||
@ -628,6 +629,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
html += field.label + " ";
|
html += field.label + " ";
|
||||||
html += (field.awPopOver) ? Attr(field, 'awPopOver', fld) : "";
|
html += (field.awPopOver) ? Attr(field, 'awPopOver', fld) : "";
|
||||||
html += "</label>\n";
|
html += "</label>\n";
|
||||||
|
html += "</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
|
Loading…
Reference in New Issue
Block a user