Skip to content

Commit 69efcc7

Browse files
committed
Tweaks to mergedButton
1 parent a6d7de1 commit 69efcc7

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

resources/views/includes/actions/mergedButton.blade.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,21 @@
1010
->except(['default','default-styling','default-colors'])
1111
}}
1212
@if($action->hasIcon())
13-
<x-livewire-tables::shared.icon :attributes="$action->getIconAttributes()" :iconRight="$action->getIconRight()" :icon="$action->getIcon()" />
13+
<span @class([
14+
'w-1/12',
15+
'order-1 inline-block ' => !$action->getIconRight(),
16+
'order-2 inline-block mr-2' => $action->getIconRight()
17+
])>
18+
<i {{ $action->getIconAttributes()
19+
->class([
20+
'ms-1 '. $action->getIcon() => $isBootstrap,
21+
'ml-1 '. $action->getIcon() => $isTailwind && $action->getIconRight(),
22+
'pr-1 '. $action->getIcon() => $isTailwind && !$action->getIconRight(),
23+
])
24+
->except(['default','default-styling','default-colors'])
25+
}}
26+
></i>
27+
</span>
1428
@endif
1529

1630
<x-livewire-tables::shared.label :attributes="$action->getLabelAttributesBag()" :hasIcon="$action->hasIcon()" :iconRight="$action->getIconRight()">

src/Features/ColumnSelect/QueryString/HasQueryStringForColumnSelect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ trait HasQueryStringForColumnSelect
1111
*/
1212
protected function queryStringHasQueryStringForColumnSelect(): array
1313
{
14-
return ($this->getQueryStringStatusForColumnSelect() && $this->columnSelectIsEnabled()) ? ['selectedColumnsNew' => ['except' => null, 'history' => false, 'keep' => false, 'as' => $this->getQueryStringAliasForColumnSelect()]] : [];
14+
return ($this->getQueryStringStatusForColumnSelect() && $this->columnSelectIsEnabled()) ? ['selectedColumns' => ['except' => null, 'history' => false, 'keep' => false, 'as' => $this->getQueryStringAliasForColumnSelect()]] : [];
1515

1616
}
1717

0 commit comments

Comments
 (0)