* zin: fix panel form max width.
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user