From 0548a6233b307bdcc9883903e549e442b1fa2c30 Mon Sep 17 00:00:00 2001 From: atmonshi Date: Sun, 8 Oct 2023 19:54:46 +0000 Subject: [PATCH] Fix styling --- src/Facades/Bolt.php | 22 +++++++++++----------- src/Models/Section.php | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Facades/Bolt.php b/src/Facades/Bolt.php index 39fe85ab..1ce49cce 100644 --- a/src/Facades/Bolt.php +++ b/src/Facades/Bolt.php @@ -132,20 +132,20 @@ public static function prepareFieldsAndSectionToRender(Form $zeusForm, bool $inl Grid::make()->columns($section->columns)->schema($fields), ]); } else { - if($section->compact){ + if ($section->compact) { $sections[] = Fieldset::make($section->name) - ->id($sectionId) - ->schema($fields) - ->columns($section->columns); + ->id($sectionId) + ->schema($fields) + ->columns($section->columns); } else { $sections[] = Section::make($section->name) - ->id($sectionId) - ->icon($section->icon ?? null) - ->schema($fields) - ->collapsible() - ->aside(fn () => $section->aside) - ->description($section->description) - ->columns($section->columns); + ->id($sectionId) + ->icon($section->icon ?? null) + ->schema($fields) + ->collapsible() + ->aside(fn () => $section->aside) + ->description($section->description) + ->columns($section->columns); } } } diff --git a/src/Models/Section.php b/src/Models/Section.php index 6c516721..4290530d 100644 --- a/src/Models/Section.php +++ b/src/Models/Section.php @@ -16,8 +16,8 @@ * @property string $name * @property string $columns * @property string $description - * @property boolean $aside - * @property boolean $compact + * @property bool $aside + * @property bool $compact */ class Section extends Model {