From ba3f5347db3bb4a2de84f578ae9da0692b5b3093 Mon Sep 17 00:00:00 2001 From: Chenjianyu Date: Mon, 3 Jul 2023 15:06:10 +0800 Subject: [PATCH] * format code. --- module/ai/view/promptdesignprogressbar.html.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/module/ai/view/promptdesignprogressbar.html.php b/module/ai/view/promptdesignprogressbar.html.php index 6edc63fc1b..b9a303e12a 100644 --- a/module/ai/view/promptdesignprogressbar.html.php +++ b/module/ai/view/promptdesignprogressbar.html.php @@ -14,11 +14,11 @@
ai->designStepNav as $index => $stepLang) { @@ -27,10 +27,7 @@ $nextStepStatus = next($stepstatus); if($index != 'finalize') { - $arrowClass = $currentStepStatus == $nextStepStatus - || ($currentStepStatus == 'clickable' && $nextStepStatus == 'disabled') - ? 'outline-arrow' - : 'solid-arrow'; + $arrowClass = $currentStepStatus == $nextStepStatus ||($currentStepStatus == 'clickable' && $nextStepStatus == 'disabled') ? 'outline-arrow' : 'solid-arrow'; $arrow = "
"; } echo "
$stepLang$arrow
"; @@ -59,7 +56,7 @@ }); step.addEventListener('mouseleave', function (e) { - if (step.lastElementChild?.classList.contains('hover-arrow')) + if(step.lastElementChild?.classList.contains('hover-arrow')) { step.lastElementChild.classList.remove('hover-arrow'); step.lastElementChild.classList.add('outline-arrow');