From 73dc96f83b0a2155e7ba4a5a85754f3aad8342ce Mon Sep 17 00:00:00 2001 From: Adam Weston Date: Fri, 1 Mar 2024 14:28:57 -0500 Subject: [PATCH] Chore: update styling to match avatar size --- README.md | 17 +++++++++++++++++ .../views/components/create-menu.blade.php | 6 +++++- src/Components/QuickCreateMenu.php | 3 +++ src/QuickCreatePlugin.php | 14 ++++++++++++++ 4 files changed, 39 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4ce6a01..75d2a4e 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,23 @@ public function panel(Panel $panel): Panel } ``` +### Appearance + +By default, the Quick Create button will be fully rounded if you would like to have a more square button you can disable the rounding with the `rounded()` method. + +```php +use Awcodes\FilamentQuickCreate\QuickCreatePlugin; + +public function panel(Panel $panel): Panel +{ + return $panel + ->plugins([ + QuickCreatePlugin::make() + ->rounded(false), + ]) +} +``` + ### Slide Overs By default, Quick Create will render simple resources in a standard modal. If you would like to render them in a slide over instead you may use the `slideOver()` modifier to do so. diff --git a/resources/views/components/create-menu.blade.php b/resources/views/components/create-menu.blade.php index 20da655..9668a08 100644 --- a/resources/views/components/create-menu.blade.php +++ b/resources/views/components/create-menu.blade.php @@ -3,7 +3,11 @@