From cd75e5c25ddcc6c7a29809cd24d32a3a363f0ddd Mon Sep 17 00:00:00 2001 From: wangyuting Date: Tue, 23 Apr 2024 10:07:09 +0800 Subject: [PATCH] * Fix flowchart block css bug. --- module/block/css/guideblock.ui.css | 2 +- module/block/ui/flowchart.html.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/block/css/guideblock.ui.css b/module/block/css/guideblock.ui.css index 1a3cb4fd4a..e7bec74c24 100644 --- a/module/block/css/guideblock.ui.css +++ b/module/block/css/guideblock.ui.css @@ -13,7 +13,7 @@ .guide-block .flowchart .flow-item > div:before {border-left-color: #fff; z-index: 1;} .guide-block .flowchart .flow-item > div > div {display: flow-root; overflow: hidden;}.ie-8 .flow-item > div {margin-right: 10px}.flow-item-0 > div {color: #FFF; font-weight: 400;} .guide-block .flowchart .flow-item-0 > div:before {display: none;} -.guide-block .flowchart {.flow-item-1, .flow-item-2, .flow-item-3, .flow-item-4, .flow-item-5 {background-image: url('static/svg/arrow-white.svg');}} +.guide-block .flowchart .flow-item-arrow {background-image: url('static/svg/arrow-white.svg');} .guide-block .flowchart .flow-item-display {overflow: hidden; white-space:nowrap; text-overflow: clip; font-size: 12px;} .guide-block .theme-switch div.theme-default {color: #3785ff;} diff --git a/module/block/ui/flowchart.html.php b/module/block/ui/flowchart.html.php index 698b589b39..bd46ae2a6c 100644 --- a/module/block/ui/flowchart.html.php +++ b/module/block/ui/flowchart.html.php @@ -28,13 +28,14 @@ function printFlowchart() { $items[] = div ( - set('class', 'flow-item flow-item-' . $index++), + set('class', "flow-item flow-item-$index " . ($index >= 1 ? 'flow-item-arrow' : '')), div ( set('class', 'flow-item-display'), $flowItem ) ); + $index ++; } $charts[] = div (