* Modify the style of statistic block.

This commit is contained in:
liumengyi
2024-04-12 14:34:35 +08:00
parent a63ba674fb
commit f1ffcf5cd9
2 changed files with 7 additions and 7 deletions
@@ -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'),
+4 -4
View File
@@ -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