Skip to content

Commit

Permalink
Fixed context menu styling
Browse files Browse the repository at this point in the history
  • Loading branch information
kreaweb.be committed Apr 23, 2024
1 parent b4b2998 commit 2127a43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion resources/views/livewire/people/children.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</x-ts-dropdown.items>
</a>

@if (auth()->user()->hasPermission('person:update'))
@if (auth()->user()->hasPermission('person:update') and $person->children->count() > 0)
<hr />

@foreach ($children as $child)
Expand Down
4 changes: 2 additions & 2 deletions resources/views/livewire/people/partners.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</x-ts-dropdown.items>
</a>

@if (auth()->user()->hasPermission('couple:update'))
@if (auth()->user()->hasPermission('couple:update') and $person->couples->count() > 0)
<hr />

@foreach ($person->couples->sortBy('date_start') as $couple)
Expand All @@ -31,7 +31,7 @@
@endforeach
@endif

@if (auth()->user()->hasPermission('couple:delete'))
@if (auth()->user()->hasPermission('couple:delete') and $person->couples->count() > 0)
<hr />

@foreach ($person->couples->sortBy('date_start') as $couple)
Expand Down
8 changes: 3 additions & 5 deletions resources/views/livewire/people/profile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@
@if (auth()->user()->hasPermission('person:delete') and $person->isDeletable())
<hr />

<x-ts-dropdown.items separator wire:click="confirmDeletion()">
<span class="text-danger-500">
<x-ts-icon icon="trash" class="mr-2" />
{{ __('person.delete_person') }}
</span>
<x-ts-dropdown.items separator wire:click="confirmDeletion()" class="!text-danger-500">
<x-ts-icon icon="trash" class="mr-2" />
{{ __('person.delete_person') }}
</x-ts-dropdown.items>
@endif
</x-ts-dropdown>
Expand Down

0 comments on commit 2127a43

Please sign in to comment.