forked from CGM_Public/pretix_original
Fix formset widths (#5530)
* Remove explicitly specified width for formset-forms With that style, all formset rows were a fix pixels less wide than surrounding content * Set select2 width to 100% so they adapt when browser window is resized
This commit is contained in:
@@ -485,6 +485,7 @@ var form_handlers = function (el) {
|
|||||||
theme: "bootstrap",
|
theme: "bootstrap",
|
||||||
language: $("body").attr("data-select2-locale"),
|
language: $("body").attr("data-select2-locale"),
|
||||||
data: JSON.parse($(this.getAttribute('data-select2-src')).text()),
|
data: JSON.parse($(this.getAttribute('data-select2-src')).text()),
|
||||||
|
width: '100%',
|
||||||
}).val(selectedValue).trigger('change');
|
}).val(selectedValue).trigger('change');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -63,10 +63,6 @@ td > .form-group > .checkbox {
|
|||||||
@include box-shadow(none);
|
@include box-shadow(none);
|
||||||
}
|
}
|
||||||
|
|
||||||
div[data-formset-body], div[data-formset-form], div[data-nested-formset-form], div[data-nested-formset-body], details[data-formset-form] {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-plugins .panel-title {
|
.form-plugins .panel-title {
|
||||||
line-height: 34px;
|
line-height: 34px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user