Skip to content

Commit

Permalink
refs #2846 Fixed icon clipping at different ratios
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Aug 13, 2024
1 parent 1a0496c commit e54284f
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions resources/views/actions/button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
{{ $attributes }}>

@isset($icon)
<x-orchid-icon :path="$icon" class="{{ empty($name) ?: 'me-2'}}"/>
<x-orchid-icon :path="$icon" class="overflow-visible"/>
@endisset

<span>{{ $name ?? '' }}</span>
{{ $name ?? '' }}
</button>
@endcomponent
2 changes: 1 addition & 1 deletion resources/views/actions/dropdown.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
data-bs-popper-config='{"strategy": "fixed"}'
>
@isset($icon)
<x-orchid-icon :path="$icon" class="{{ empty($name) ?: 'me-2'}}"/>
<x-orchid-icon :path="$icon" class="overflow-visible"/>
@endisset

<span>{{ $name ?? '' }}</span>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/actions/link.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{ $attributes }}
>
@isset($icon)
<x-orchid-icon :path="$icon" class="{{ empty($name) ?: 'me-2'}}"/>
<x-orchid-icon :path="$icon" class="overflow-visible"/>
@endisset

<span>{{ $name ?? '' }}</span>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/actions/menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
{{ $attributes }}
>
@isset($icon)
<x-orchid-icon :path="$icon" class="{{ empty($name) ?: 'me-2 overflow-visible'}}"/>
<x-orchid-icon :path="$icon" class="overflow-visible"/>
@endisset

<span class="me-2">{{ $name ?? '' }}</span>
<span class="mx-2">{{ $name ?? '' }}</span>

@isset($badge)
<b class="badge rounded-pill bg-{{$badge['class']}} col-auto ms-auto">{{$badge['data']()}}</b>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/actions/modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
>

@isset($icon)
<x-orchid-icon :path="$icon" class="{{ empty($name) ?: 'me-2'}}"/>
<x-orchid-icon :path="$icon" class="overflow-visible"/>
@endisset

<span>{{ $name ?? '' }}</span>
Expand Down
2 changes: 1 addition & 1 deletion src/Screen/Actions/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Screen/Actions/DropDown.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [],
Expand Down
2 changes: 1 addition & 1 deletion src/Screen/Actions/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Screen/Actions/ModalToggle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e54284f

Please sign in to comment.