From 5fd889a2cbf4fa9f4ae33aea48a39d28306902ca Mon Sep 17 00:00:00 2001 From: liugang Date: Fri, 14 Jul 2023 16:23:31 +0800 Subject: [PATCH] * overviewBlock: adjust default style. --- lib/zin/wg/overviewblock/css/v1.css | 2 -- lib/zin/wg/overviewblock/v1.php | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/zin/wg/overviewblock/css/v1.css b/lib/zin/wg/overviewblock/css/v1.css index ff8c4b7bfc..4ae144e46d 100644 --- a/lib/zin/wg/overviewblock/css/v1.css +++ b/lib/zin/wg/overviewblock/css/v1.css @@ -1,3 +1 @@ -.overview-block .cards {margin-top: -20px;} .overview-block .cards > .card + .card > :first-child {border-left-width: 1px;} -.overview-block .bar-chart ul {height: 60px;} diff --git a/lib/zin/wg/overviewblock/v1.php b/lib/zin/wg/overviewblock/v1.php index efd2436752..3bf3887e04 100644 --- a/lib/zin/wg/overviewblock/v1.php +++ b/lib/zin/wg/overviewblock/v1.php @@ -28,7 +28,7 @@ class overviewBlock extends wg protected function buildCard($card): wg { - $class = 'text-2xl text-center font-bold leading-relaxed ' . (!empty($card->class) ? $card->class : ''); + $class = 'text-2xl text-center leading-relaxed ' . (!empty($card->class) ? $card->class : ''); return col ( @@ -59,6 +59,7 @@ class overviewBlock extends wg return div ( setClass('cards flex w-1/2'), + setStyle(array('margin-top' => '-20px')), $cards ); } @@ -104,6 +105,7 @@ class overviewBlock extends wg h::ul ( setClass('flex justify-around items-end w-full'), + setStyle(array('height' => '60px')), $bars ) ),