From 7dd0d707b57f6435c0496c6c1d2d3cd3487bab6d Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Wed, 6 Jul 2022 17:27:09 +0300 Subject: [PATCH] tooltip component edited --- app/View/Components/Tooltip.php | 4 ++++ .../components/layouts/modules/show/buttons.blade.php | 6 +++--- resources/views/components/tooltip.blade.php | 9 ++++++++- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/View/Components/Tooltip.php b/app/View/Components/Tooltip.php index a3af5460c..bf4ecf96f 100644 --- a/app/View/Components/Tooltip.php +++ b/app/View/Components/Tooltip.php @@ -25,6 +25,8 @@ class Tooltip extends Component public $whitespace; + public $width; + /** * Create a new component instance. * @@ -36,6 +38,7 @@ class Tooltip extends Component string $message = '', string $size = '', string $whitespace = '', + string $width = 'auto', ) { $this->id = $this->getId($id); $this->placement = $this->getPlacement($placement); @@ -48,6 +51,7 @@ class Tooltip extends Component $this->message = $this->getMessage($message); $this->size = $this->getSize($size); $this->whitespace = $this->getWhiteSpace($whitespace); + $this->width = $width; } /** diff --git a/resources/views/components/layouts/modules/show/buttons.blade.php b/resources/views/components/layouts/modules/show/buttons.blade.php index 888f46899..3c850826d 100644 --- a/resources/views/components/layouts/modules/show/buttons.blade.php +++ b/resources/views/components/layouts/modules/show/buttons.blade.php @@ -1,7 +1,7 @@ @props(['module', 'installed', 'enable']) @if (! empty($module->plan)) - + install) - + @else - + + {!! $slot !!}