From 782f31e87dbe785ea5571bc204c2ca09c6d60d37 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 10 Jul 2023 15:52:30 +0800 Subject: [PATCH] * Fix style of scrum overview block. --- module/block/css/scrumoverviewblock.ui.css | 6 ++++++ module/block/ui/scrumoverviewblock.html.php | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 module/block/css/scrumoverviewblock.ui.css diff --git a/module/block/css/scrumoverviewblock.ui.css b/module/block/css/scrumoverviewblock.ui.css new file mode 100644 index 0000000000..6955ef4dcc --- /dev/null +++ b/module/block/css/scrumoverviewblock.ui.css @@ -0,0 +1,6 @@ +.scrumoverview-block .project-statistic-table table {width: 100%; border-collapse: separate; border-spacing: 0 0.5rem; padding-right: 1rem;} +.scrumoverview-block .project-statistic-table table tr:first-child {background: url(static/svg/arrow-step1-grey.svg) center no-repeat; background-size: 100%;} +.scrumoverview-block .project-statistic-table table th {padding-right: 0px; margin-top: 1rem; font-size: 12px;} +.scrumoverview-block .project-statistic-table table td {padding-left: 0px; margin-top: 1rem;} + +.scrumoverview-block .hidden-nowrap {overflow: hidden; white-space: nowrap;} diff --git a/module/block/ui/scrumoverviewblock.html.php b/module/block/ui/scrumoverviewblock.html.php index e4cc308aaa..4b85c55022 100644 --- a/module/block/ui/scrumoverviewblock.html.php +++ b/module/block/ui/scrumoverviewblock.html.php @@ -68,7 +68,7 @@ panel setClass('flex flex-wrap h-full w-full' . (!$longBlock ? ' flex-wrap' : '')), div ( - setClass('flex flex-wrap w-full bg-white leading-6 px-2 py-1 mt-1 mx-3 shadow items-center gap-x-2 justify-between' . ($longBlock ? ' h-10 mb-6 flex-nowrap' : 'h-20 mb-4 flex-wrap')), + setClass('flex w-full bg-white leading-6 px-2 py-1 mt-1 mx-3 shadow items-center gap-x-2 justify-between' . ($longBlock ? ' h-10 mb-6 flex-nowrap' : 'h-20 mb-4 flex-wrap')), cell ( setClass('text-left'), @@ -115,7 +115,7 @@ panel ) : '', (!empty($project->executions) && $project->multiple) ? cell ( - setClass('flex-1 hidden-nowrap' . (!$longBlock ? ' text-left' : ' text-right')), + setClass('flex-1 hidden-nowrap' . (!$longBlock ? ' text-left w-full' : ' text-right')), $longBlock ? set::width($width) : '', span (