Skip to content

Commit

Permalink
Merge pull request #50 from datlechin/collapse-label
Browse files Browse the repository at this point in the history
chore: add collapse label for menu item
  • Loading branch information
datlechin authored Nov 9, 2024
2 parents dd9d581 + 15be1ca commit 36e3f9c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/lang/en/menu-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
],
'items' => [
'expand' => 'Expand',
'collapse' => 'Collapse',
'empty' => [
'heading' => 'There are no items in this menu.',
],
Expand Down
1 change: 1 addition & 0 deletions resources/lang/fr/menu-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
],
'items' => [
'expand' => 'Développer',
'collapse' => 'Réduire',
'empty' => [
'heading' => 'Il n’y a aucun élément dans ce menu.',
],
Expand Down
1 change: 1 addition & 0 deletions resources/lang/nl/menu-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
],
'items' => [
'expand' => 'Uitklappen',
'collapse' => 'Inklappen',
'empty' => [
'heading' => 'Dit menu heeft geen items.',
],
Expand Down
1 change: 1 addition & 0 deletions resources/lang/vi/menu-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
],
'items' => [
'expand' => 'Mở rộng',
'collapse' => 'Thu gọn',
'empty' => [
'heading' => 'Không có mục nào trong menu này.',
],
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/menu-item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class="flex justify-between px-3 py-2 bg-white shadow-sm rounded-xl ring-1 ring-
<x-filament::icon-button
icon="heroicon-o-chevron-right"
x-on:click="open = !open"
:tooltip="trans('filament-menu-builder::menu-builder.items.expand')"
x-bind:title="open ? '{{ trans('filament-menu-builder::menu-builder.items.collapse') }}' : '{{ trans('filament-menu-builder::menu-builder.items.expand') }}'"
color="gray"
class="transition duration-200 ease-in-out"
x-bind:class="{ 'rotate-90': open }"
Expand Down

0 comments on commit 36e3f9c

Please sign in to comment.