From e54284f0e0c88327ce8311341aff267c563e4edd Mon Sep 17 00:00:00 2001 From: Alexandr Chernyaev Date: Tue, 13 Aug 2024 23:27:32 +0300 Subject: [PATCH] refs #2846 Fixed icon clipping at different ratios --- resources/views/actions/button.blade.php | 4 ++-- resources/views/actions/dropdown.blade.php | 2 +- resources/views/actions/link.blade.php | 2 +- resources/views/actions/menu.blade.php | 4 ++-- resources/views/actions/modal.blade.php | 2 +- src/Screen/Actions/Button.php | 2 +- src/Screen/Actions/DropDown.php | 2 +- src/Screen/Actions/Link.php | 2 +- src/Screen/Actions/ModalToggle.php | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/resources/views/actions/button.blade.php b/resources/views/actions/button.blade.php index 2694edccb..2756adee3 100644 --- a/resources/views/actions/button.blade.php +++ b/resources/views/actions/button.blade.php @@ -9,9 +9,9 @@ {{ $attributes }}> @isset($icon) - + @endisset - {{ $name ?? '' }} + {{ $name ?? '' }} @endcomponent diff --git a/resources/views/actions/dropdown.blade.php b/resources/views/actions/dropdown.blade.php index bce2be176..d0f1866b4 100644 --- a/resources/views/actions/dropdown.blade.php +++ b/resources/views/actions/dropdown.blade.php @@ -7,7 +7,7 @@ data-bs-popper-config='{"strategy": "fixed"}' > @isset($icon) - + @endisset {{ $name ?? '' }} diff --git a/resources/views/actions/link.blade.php b/resources/views/actions/link.blade.php index 96479b522..880ad519c 100644 --- a/resources/views/actions/link.blade.php +++ b/resources/views/actions/link.blade.php @@ -4,7 +4,7 @@ {{ $attributes }} > @isset($icon) - + @endisset {{ $name ?? '' }} diff --git a/resources/views/actions/menu.blade.php b/resources/views/actions/menu.blade.php index 062061c30..d04c04a80 100644 --- a/resources/views/actions/menu.blade.php +++ b/resources/views/actions/menu.blade.php @@ -10,10 +10,10 @@ {{ $attributes }} > @isset($icon) - + @endisset - {{ $name ?? '' }} + {{ $name ?? '' }} @isset($badge) {{$badge['data']()}} diff --git a/resources/views/actions/modal.blade.php b/resources/views/actions/modal.blade.php index e9ca9bbec..93fae87d8 100644 --- a/resources/views/actions/modal.blade.php +++ b/resources/views/actions/modal.blade.php @@ -12,7 +12,7 @@ > @isset($icon) - + @endisset {{ $name ?? '' }} diff --git a/src/Screen/Actions/Button.php b/src/Screen/Actions/Button.php index 4341e4ae2..861ff0038 100644 --- a/src/Screen/Actions/Button.php +++ b/src/Screen/Actions/Button.php @@ -31,7 +31,7 @@ class Button extends Action * @var array */ protected $attributes = [ - 'class' => 'btn btn-link', + 'class' => 'btn btn-link icon-link', 'type' => 'submit', 'novalidate' => false, 'method' => null, diff --git a/src/Screen/Actions/DropDown.php b/src/Screen/Actions/DropDown.php index afbfdae15..6a2b52603 100644 --- a/src/Screen/Actions/DropDown.php +++ b/src/Screen/Actions/DropDown.php @@ -29,7 +29,7 @@ class DropDown extends Action * @var array */ protected $attributes = [ - 'class' => 'btn btn-link', + 'class' => 'btn btn-link icon-link', 'source' => null, 'icon' => null, 'list' => [], diff --git a/src/Screen/Actions/Link.php b/src/Screen/Actions/Link.php index acd839b4b..99c06e503 100644 --- a/src/Screen/Actions/Link.php +++ b/src/Screen/Actions/Link.php @@ -29,7 +29,7 @@ class Link extends Action * @var array */ protected $attributes = [ - 'class' => 'btn btn-link', + 'class' => 'btn btn-link icon-link', 'icon' => null, 'href' => '#!', 'turbo' => true, diff --git a/src/Screen/Actions/ModalToggle.php b/src/Screen/Actions/ModalToggle.php index 2d29029e0..d9d7604d5 100644 --- a/src/Screen/Actions/ModalToggle.php +++ b/src/Screen/Actions/ModalToggle.php @@ -29,7 +29,7 @@ class ModalToggle extends Button * @var array */ protected $attributes = [ - 'class' => 'btn btn-link', + 'class' => 'btn btn-link icon-link', 'modal' => null, 'method' => null, 'modalTitle' => null,