From 2fa7aa63b32b3322d5ed92bf92c56f75d5c7ddfa Mon Sep 17 00:00:00 2001 From: daitingting Date: Fri, 30 Mar 2018 14:42:11 +0800 Subject: [PATCH] * Add title for select options. * Set wrap for options over width. --- lib/front/front.class.php | 2 +- module/testcase/view/importfromlib.html.php | 2 +- www/theme/default/style.css | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 8c6a881a13..3af830b787 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -118,7 +118,7 @@ class html extends baseHTML $optionPinyin = zget($convertedPinYin, $value, ''); $key = str_replace('item', '', $key); $selected = strpos($selectedItems, ",$key,") !== false ? " selected='selected'" : ''; - $string .= "\n"; + $string .= "\n"; } /* End. */ diff --git a/module/testcase/view/importfromlib.html.php b/module/testcase/view/importfromlib.html.php index 6857086505..6203829c94 100644 --- a/module/testcase/view/importfromlib.html.php +++ b/module/testcase/view/importfromlib.html.php @@ -50,7 +50,7 @@ id", $case->title)) echo $case->title;?> module, '');?> - id}]", $modules, 0, "class='from-control chosen' onchange='setModule(this)'");?> + id}]", $modules, 0, "class='form-control chosen' onchange='setModule(this)'");?> testcase->typeList, $case->type);?> diff --git a/www/theme/default/style.css b/www/theme/default/style.css index bd77e228ea..ad8ce96edb 100644 --- a/www/theme/default/style.css +++ b/www/theme/default/style.css @@ -296,6 +296,8 @@ fieldset > .content table th, fieldset > .content table td, fieldset > .article- .chosen-up.chosen-container .chosen-drop {bottom: 100%; top: inherit; border-radius: 2px 2px 0 0; box-shadow: 0 -3px 5px rgba(0,0,0,.15); margin-top: auto; margin-bottom: -1px;} .chosen-container-single .chosen-single abbr {top: 6px!important;} +.table-fixed .chosen-container .chosen-drop .chosen-results > li{white-space: normal;} + /* Condensed form */ .form-condensed .table-form {margin-bottom: 0;} .form-condensed .table-form td, .form-condensed .table-form th {padding: 5px; font-size: 12px;}