From 3ea5712ea4c3e262f230e73bf93e2b703e04df05 Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 26 Mar 2024 10:17:59 +0800 Subject: [PATCH] * block: optimize style of guide block. --- module/block/ui/guideblock.html.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/module/block/ui/guideblock.html.php b/module/block/ui/guideblock.html.php index 325a6754a9..a404aec37f 100644 --- a/module/block/ui/guideblock.html.php +++ b/module/block/ui/guideblock.html.php @@ -95,14 +95,11 @@ blockPanel setClass('guide-block'), to::heading ( - !commonModel::isTutorialMode() ? a( - set( - array( - 'href' => createLink('tutorial', 'start'), - 'class' => 'btn btn-primary warning', - 'data-toggle' => 'modal' - ) - ), + !commonModel::isTutorialMode() ? btn + ( + set::url('tutorial', 'start'), + set::type('warning'), + toggle::modal(), $lang->block->tutorial ) : null ), @@ -112,10 +109,10 @@ blockPanel cell ( set('width', '18%'), - set('class', 'border-r overflow-y-auto'), + set('class', 'border-r overflow-y-auto px-2 py-4'), ul ( - set('class', 'nav nav-tabs nav-stacked'), + set('class', 'nav nav-stacked'), $getGuideTabs($blockNavCode) ) ),