diff --git a/assets/css/scss/molecules/_legacy_panel.scss b/assets/css/scss/molecules/_legacy_panel.scss index d881543c07..1b84ee7f92 100644 --- a/assets/css/scss/molecules/_legacy_panel.scss +++ b/assets/css/scss/molecules/_legacy_panel.scss @@ -6,11 +6,21 @@ before:content-[""] before:absolute before:rounded-l-lg before:bg-secondary before:w-1 before:h-full before:-left-1; a { - @apply cursor-pointer p-2 block bg-support-6 rounded-r-lg; + @apply cursor-pointer p-2 block bg-support-6 rounded-r-lg border-y border-y-gray-25 border-r border-r-gray-25; &[aria-expanded=true] { @apply rounded-b-none; } + + &::before { + @apply mr-1; + + float: left; + } + + .ch-tool-icon.mdi { + @apply mr-1; + } } } diff --git a/public/main/inc/lib/formvalidator/FormValidator.class.php b/public/main/inc/lib/formvalidator/FormValidator.class.php index 0341351c81..e39b6642be 100644 --- a/public/main/inc/lib/formvalidator/FormValidator.class.php +++ b/public/main/inc/lib/formvalidator/FormValidator.class.php @@ -1009,8 +1009,9 @@ EOT; return true; } - public function addStartPanel(string $id, string $title, bool $open = false, $icon = null) + public function addStartPanel(string $id, string $title, bool $open = false, $icon = null): void { + // Same code as in Display::panelCollapse $parent = null; $javascript = ' '; $userForm->addButtonSave(get_lang('Send')); +$userForm->addHtml(''); $userForm->setDefaults($defaults);