* zin: fix panel form max width.

This commit is contained in:
sunhao
2024-04-12 10:31:02 +08:00
parent 4ce37f2d7f
commit e188906f53
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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}
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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'),
+1 -1
View File
@@ -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),