From f431e2b7568751d98892b42a83b536a70436eac5 Mon Sep 17 00:00:00 2001 From: Tiago Fernandes Date: Thu, 7 Mar 2024 10:40:49 +0000 Subject: [PATCH] Increase block picker width --- .../RelationManagers/ActionsRelationManager.php | 6 ++++-- .../RelationManagers/ConditionsRelationManager.php | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Filament/Resources/RuleResource/RelationManagers/ActionsRelationManager.php b/src/Filament/Resources/RuleResource/RelationManagers/ActionsRelationManager.php index a538239..07390ed 100644 --- a/src/Filament/Resources/RuleResource/RelationManagers/ActionsRelationManager.php +++ b/src/Filament/Resources/RuleResource/RelationManagers/ActionsRelationManager.php @@ -30,10 +30,12 @@ public function form(Form $form): Form return count($schema) === 0 ? $form : $form->schema([ Builder::make('payload') ->addActionLabel(__('Add')) - ->hiddenLabel() - ->columnSpanFull() ->required() ->maxItems(1) + ->hiddenLabel() + ->columnSpanFull() + ->blockPickerWidth('xl') + ->blockPickerColumns(2) ->blockNumbers(false) ->reorderable(false) ->blocks($schema), diff --git a/src/Filament/Resources/RuleResource/RelationManagers/ConditionsRelationManager.php b/src/Filament/Resources/RuleResource/RelationManagers/ConditionsRelationManager.php index 0f701ca..958f74a 100644 --- a/src/Filament/Resources/RuleResource/RelationManagers/ConditionsRelationManager.php +++ b/src/Filament/Resources/RuleResource/RelationManagers/ConditionsRelationManager.php @@ -30,10 +30,12 @@ public function form(Form $form): Form return count($schema) === 0 ? $form : $form->schema([ Builder::make('payload') ->addActionLabel(__('Add')) - ->hiddenLabel() - ->columnSpanFull() ->required() ->maxItems(1) + ->hiddenLabel() + ->columnSpanFull() + ->blockPickerWidth('xl') + ->blockPickerColumns(2) ->blockNumbers(false) ->reorderable(false) ->blocks($schema),