From 1f1e8b0836fdaa8a688fe88651be1da517ab2692 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 3 Feb 2023 08:48:18 +0800 Subject: [PATCH] * fix bug #31519. --- module/project/js/build.js | 12 +++++++++++- module/project/view/build.html.php | 10 ++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/module/project/js/build.js b/module/project/js/build.js index a97168ac97..23c21fa95c 100644 --- a/module/project/js/build.js +++ b/module/project/js/build.js @@ -16,10 +16,20 @@ $(function() $('td .execution .label-danger').each(function() { $execution = $(this).closest('.execution'); - $td = $(this).closest('td'); + $td = $(this).closest('td'); if($td.width() < $execution.width()) { $execution.find('.executionName').css('display', 'inline-block').css('width', $td.width() - $(this).width()).css('overflow', 'hidden').css('float', 'left'); } }) + + $('td.c-name .build .icon-code-fork').each(function() + { + $build = $(this).closest('.build'); + $td = $(this).closest('td'); + if($td.width() < $build.width()) + { + $build.find('.buildName').css('display', 'inline-block').css('width', $td.width() - $(this).width()).css('overflow', 'hidden').css('float', 'left'); + } + }) }) diff --git a/module/project/view/build.html.php b/module/project/view/build.html.php index bd99efc9d9..b365228388 100644 --- a/module/project/view/build.html.php +++ b/module/project/view/build.html.php @@ -71,10 +71,12 @@ id"), sprintf('%03d', $build->id), '', "data-app='project'");?> - createLink($module, 'view', "buildID=$build->id"), $build->name, '', "data-app='project'");?> - execution):?> - - + + createLink($module, 'view', "buildID=$build->id"), $build->name, '', "data-app='project' class='buildName'");?> + execution):?> + + + hasProduct):?> productName;?>