From 78712b5009c4576152941d4acbcf79743deb020a Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 3 Mar 2014 13:12:21 -0600 Subject: [PATCH] Fix creeping widget sizing on user create --- include/staff/templates/dynamic-form.tmpl.php | 1 + include/staff/templates/user-lookup.tmpl.php | 2 +- scp/css/scp.css | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/staff/templates/dynamic-form.tmpl.php b/include/staff/templates/dynamic-form.tmpl.php index f77fa928a..a05b0c70b 100644 --- a/include/staff/templates/dynamic-form.tmpl.php +++ b/include/staff/templates/dynamic-form.tmpl.php @@ -1,3 +1,4 @@ +<tr><td style="width:150px"></td><td></td></tr> <?php if ($form->getTitle()) { ?> <tr><th colspan="2"> <em><strong><?php echo Format::htmlchars($form->getTitle()); ?></strong>: diff --git a/include/staff/templates/user-lookup.tmpl.php b/include/staff/templates/user-lookup.tmpl.php index 7b0a9380b..2eda5c143 100644 --- a/include/staff/templates/user-lookup.tmpl.php +++ b/include/staff/templates/user-lookup.tmpl.php @@ -47,7 +47,7 @@ if ($info['error']) { </div> <div id="new-user-form" style="display:<?php echo $user ? 'none' :'block'; ?>;"> <form method="post" class="user" action="#users/lookup/form"> - <table width="100%"> + <table width="100%" class="fixed"> <?php if(!$form) $form = UserForm::getInstance(); $form->render(true, 'Create New User'); ?> diff --git a/scp/css/scp.css b/scp/css/scp.css index d3eaceb66..64670cecb 100644 --- a/scp/css/scp.css +++ b/scp/css/scp.css @@ -546,15 +546,15 @@ a.print { border-bottom:1px solid #ddd; } -.form_table.fixed { +table.fixed { table-layout: fixed; border-collapse: collapse; width: 100%; } -.form_table.fixed td { +table.fixed td { width: 180px; } -.form_table.fixed td + td { +table.fixed td + td { width: auto; } -- GitLab