From 0369dba360b8ec0aac4d676b2c61dc81bd0fdfe8 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 22 Dec 2022 19:24:49 +0800 Subject: [PATCH] * adjust for execution field width for project build page. --- module/project/js/build.js | 16 ++++++++++++++++ module/project/view/build.html.php | 4 +++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/module/project/js/build.js b/module/project/js/build.js index 63c872731a..f075e8130b 100644 --- a/module/project/js/build.js +++ b/module/project/js/build.js @@ -10,3 +10,19 @@ function changeProduct(productID) link = createLink('project', 'build', 'projectID=' + projectID + '&type=product¶m=' + productID); location.href = link; } + +$(function() +{ + $('td .execution').each(function() + { + $deleted = $(this).find('.label-danger'); + if($deleted.length > 0) + { + $td = $(this).closest('td'); + if($td.width() < $(this).width()) + { + $(this).find('.executionName').css('display', 'inline-block').css('width', $td.width() - $deleted.width()).css('overflow', 'hidden').css('float', 'left'); + } + } + }) +}) diff --git a/module/project/view/build.html.php b/module/project/view/build.html.php index b4f70f7c3c..bd99efc9d9 100644 --- a/module/project/view/build.html.php +++ b/module/project/view/build.html.php @@ -85,12 +85,14 @@ multiple):?> execution):?> + executionName;?> - executionDeleted) $executionName = "$executionName";?> + executionDeleted) $executionName = "$executionName";?> executionDeleted):?> build->deleted;?> +