From 2be9399d2ca34559a574f2327753a31b543f8dc2 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 14 Aug 2021 01:15:43 +1000 Subject: [PATCH] CSS style fixes --- InvenTree/templates/js/translated/forms.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/InvenTree/templates/js/translated/forms.js b/InvenTree/templates/js/translated/forms.js index 37a4f1f1d6..7576f27670 100644 --- a/InvenTree/templates/js/translated/forms.js +++ b/InvenTree/templates/js/translated/forms.js @@ -490,6 +490,8 @@ function constructFormBody(fields, options) { // Attach clear callbacks (if required) addClearCallbacks(fields, options); + attachToggle(modal); + $(modal + ' .select2-container').addClass('select-full-width'); $(modal + ' .select2-container').css('width', '100%'); @@ -1699,7 +1701,7 @@ function constructInputOptions(name, classes, type, parameters) { } if (parameters.type == 'boolean') { - opts.push(`style='float: right;'`); + opts.push(`style='display: inline-block; width: 20px; margin-right: 20px;'`); } if (parameters.multiline) { @@ -1878,7 +1880,7 @@ function constructHelpText(name, parameters, options) { var style = ''; if (parameters.type == 'boolean') { - style = `style='display: inline;' `; + style = `style='display: inline-block; margin-left: 25px' `; } var html = `
${parameters.help_text}
`;