From e188906f53ca5c137e41332f90387208a9b5b714 Mon Sep 17 00:00:00 2001 From: sunhao Date: Fri, 12 Apr 2024 10:30:58 +0800 Subject: [PATCH] * zin: fix panel form max width. --- lib/zin/wg/formbatchpanel/v1.php | 2 +- lib/zin/wg/formpanel/v1.php | 4 ++-- module/convert/ui/mapjira2zentao.html.php | 2 +- module/gitlab/ui/importissue.html.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/zin/wg/formbatchpanel/v1.php b/lib/zin/wg/formbatchpanel/v1.php index f9fdb5f28c..320bd18bb6 100644 --- a/lib/zin/wg/formbatchpanel/v1.php +++ b/lib/zin/wg/formbatchpanel/v1.php @@ -46,7 +46,7 @@ class formBatchPanel extends formPanel public static function getPageCSS(): ?string { return <<<'CSS' - .panel-form-batch {margin: 0; padding-bottom: 0} + .panel-form-batch {margin: 0 auto; padding-bottom: 0} .panel-form-batch > .panel-heading {padding-left: 0; padding-right: 0} .panel-form-batch > .panel-body {position: relative; padding: 0; margin: 0 -16px} .panel-form-batch .form {gap: 0} diff --git a/lib/zin/wg/formpanel/v1.php b/lib/zin/wg/formpanel/v1.php index 90197f7366..f0bf273389 100644 --- a/lib/zin/wg/formpanel/v1.php +++ b/lib/zin/wg/formpanel/v1.php @@ -291,8 +291,8 @@ class formPanel extends panel $props = parent::buildProps(); $props[] = setClass("is-$defaultMode"); - if($width) $props[] = setCssVar('--zt-page-form-max-width', $width); - elseif($batch) $props[] = setCssVar('--zt-page-form-max-width', 'auto'); + if($width) $props[] = setCssVar('--zt-panel-form-max-width', $width); + elseif($batch) $props[] = setCssVar('--zt-panel-form-max-width', 'auto'); if($shadow) $props[] = setClass('shadow'); return $props; diff --git a/module/convert/ui/mapjira2zentao.html.php b/module/convert/ui/mapjira2zentao.html.php index 50811980b9..39a8faa133 100644 --- a/module/convert/ui/mapjira2zentao.html.php +++ b/module/convert/ui/mapjira2zentao.html.php @@ -19,7 +19,7 @@ foreach($lang->convert->jira->steps as $key => $label) div ( setClass('main-header relative center size-lg mx-auto my-4'), - setStyle(array('max-width' => 'var(--zt-page-form-max-width)')), + setStyle(array('max-width' => 'var(--zt-panel-form-max-width)')), div ( setClass('absolute left-0'), diff --git a/module/gitlab/ui/importissue.html.php b/module/gitlab/ui/importissue.html.php index 1648fb06e3..9490bb5008 100644 --- a/module/gitlab/ui/importissue.html.php +++ b/module/gitlab/ui/importissue.html.php @@ -25,7 +25,7 @@ if(empty($gitlabIssues)) { panel ( - setStyle('--zt-page-form-max-width', 'auto'), + setStyle('--zt-panel-form-max-width', 'auto'), setClass('panel-form'), set::size('lg'), set::title($lang->gitlab->importIssue),