Skip to content

Commit

Permalink
Fix visuals for managing tags of an entity from the header
Browse files Browse the repository at this point in the history
  • Loading branch information
ilestis committed Mar 25, 2024
1 parent 9a8227b commit 87e286a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions resources/views/entities/components/header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@
</div>
@endif

<div class="entity-tags entity-header-line text-xs flex flex-wrap gap-2">
<div class="entity-tags entity-header-line text-xs">
<div class="flex flex-wrap gap-2 items-center">
@if($entityTags->count() > 0)
@foreach ($entityTags as $tag)
@if (!$tag->entity) @continue @endif
Expand All @@ -284,12 +285,12 @@
@endif
@if(!($model instanceof \App\Models\Tag))
@can('update', $model)
<a href="{{ $addTagsUrl }}"
data-toggle="dialog" data-target="primary-dialog" data-url="{{ $addTagsUrl }}">
<x-icon class="fa-solid fa-plus-circle fa-2x" />
</a>
<span role="button" tabindex="0" class="entity-privacy-icon text-xl" data-toggle="dialog" data-url="{{ $addTagsUrl }}" data-target="primary-dialog" aria-haspopup="dialog">
<x-icon class="fa-solid fa-tag" tooltip="1" :title="__('Add or remove tags')" />
</span>
@endcan
@endif
</div>
</div>

@includeIf('entities.headers._' . $model->getEntityType())
Expand Down

0 comments on commit 87e286a

Please sign in to comment.