From 218aa6d618af58d84abaa6de126641cba8ee3bcc Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Thu, 16 Mar 2017 08:51:29 +0000
Subject: [PATCH] SSDM-4184 : Some styling improvements, buttons don't need to
 use the same space that other fields and value can take all width

SVN: 37915
---
 .../html/js/views/AdvancedSearch/AdvancedSearchView.js       | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js
index 40a6eb8f57f..3a5553fec55 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js
@@ -123,7 +123,7 @@ function AdvancedSearchView(advancedSearchController, advancedSearchModel) {
 						.append($("<th>").text("Field Name"))
 						.append($("<th>").text("Comparator Operator"))
 						.append($("<th>").text("Field Value"))
-						.append($("<th>").append(this._$addButton))
+						.append($("<th>", { "style" : "width : 56px !important;" }).append(this._$addButton))
 					);
 		
 		this._paintInputRow();
@@ -152,7 +152,8 @@ function AdvancedSearchView(advancedSearchController, advancedSearchModel) {
 		var $newFieldOperatorContainer = $("<td>");
 		var $newRow = $("<tr>", { id : uuidValue });
 		var $fieldTypeDropdown = this._getNewFieldTypeDropdownComponent($newFieldNameContainer, $newFieldOperatorContainer, this._advancedSearchModel.criteria.entityKind, uuidValue);
-		var $fieldValue = $("<input>", { class : "form-control", type: "text"});
+		var $fieldValue = $("<input>", { class : "form-control", type: "text" });
+		$fieldValue.css({width : "100%" });
 		
 		$fieldValue.keyup(function() {
 			var $thisComponent = $(this);
-- 
GitLab