From f1ffcf5cd9b018efbec7b2082974f023484fee5d Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 12 Apr 2024 14:34:35 +0800 Subject: [PATCH] * Modify the style of statistic block. --- module/block/ui/productstatisticblock.html.php | 6 +++--- module/block/ui/qastatisticblock.html.php | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/module/block/ui/productstatisticblock.html.php b/module/block/ui/productstatisticblock.html.php index 347bb1b1e3..2a7873f76d 100644 --- a/module/block/ui/productstatisticblock.html.php +++ b/module/block/ui/productstatisticblock.html.php @@ -71,7 +71,7 @@ statisticBlock setClass('flex-1 gap-4'), div ( - setClass('row items-center gap-1', $longBlock ? 'py-2' : ''), + setClass('row items-center gap-1 font-bold', $longBlock ? 'py-2' : ''), $lang->block->productstatistic->deliveryRate, icon ( @@ -182,7 +182,7 @@ statisticBlock col ( setClass('flex-1 gap-1.5 pr-3 ', $longBlock ? 'py-2' : 'pl-3'), - div($lang->block->productstatistic->storyStatistics), + div(setClass('font-bold'), $lang->block->productstatistic->storyStatistics), row ( setClass('text-sm text-gray gap-2'), @@ -222,7 +222,7 @@ statisticBlock ($product->newPlan || $product->newExecution || $product->newRelease) ? col ( setClass('flex-1 gap-3 pr-3 ', $longBlock ? 'border-l pl-4 py-2' : 'pl-3 pt-2'), - div($lang->block->productstatistic->news), + div(setClass('font-bold'), $lang->block->productstatistic->news), $product->newPlan ? div ( setClass($longBlock ? 'col' : 'row', 'gap-2'), diff --git a/module/block/ui/qastatisticblock.html.php b/module/block/ui/qastatisticblock.html.php index e63ac31bd1..45beda277c 100644 --- a/module/block/ui/qastatisticblock.html.php +++ b/module/block/ui/qastatisticblock.html.php @@ -128,7 +128,7 @@ $buildTesttasks = function(object $product, bool $longBlock): node|null return col ( setClass('min-w-0 flex-1 gap-1.5 px-3 pt-2 border-l'), - div($lang->block->qastatistic->latestTesttask), + div(setClass('font-bold'), $lang->block->qastatistic->latestTesttask), empty($doingTesttasks) ? null : div ( setClass($longBlock ? 'py-2' : 'pt-2'), @@ -156,10 +156,10 @@ statisticBlock setClass('h-full overflow-hidden items-stretch px-2', $longBlock ? 'row py-3' : 'col gap-2 pt-1'), center ( - setClass('gap-2 px-5', $testTasksView ? 'flex-none' : 'flex-1'), + setClass('gap-2 px-5 justify-start ', $testTasksView ? 'flex-none' : 'flex-1', $longBlock ? ' py-2' : ''), div ( - setClass('w-full'), + setClass('w-full font-bold'), $lang->block->qastatistic->fixBugRate ), progressCircle @@ -208,7 +208,7 @@ statisticBlock col ( setClass('flex-1 gap-1.5 px-3 py-2'), - div($lang->block->qastatistic->bugStatistics), + div(setClass('font-bold'), $lang->block->qastatistic->bugStatistics), !empty($product) ? $buildProgressBars($product, $longBlock) : null ), $testTasksView