Skip to content

Commit

Permalink
Merge pull request #468 from pinkary-project/chore/minor-imp-in-links
Browse files Browse the repository at this point in the history
feat: Improve UI for link actions in the links index view
  • Loading branch information
nunomaduro authored Aug 2, 2024
2 parents 3d12d36 + d9a7829 commit 0aca55f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions resources/views/livewire/links/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,12 @@ class="relative h-12 hover:darken-gradient group flex {{ $link->is_visible ? 'bg
<div
x-sortable-handle
class="absolute left-0 sm:-left-10 top-0 bottom-0 flex w-11 cursor-move items-center justify-center text-slate-300 opacity-50 hover:opacity-100 focus:outline-none group-hover:left-0 transition-all duration-500 z-10"
x-bind:class="{ 'invisible': showActions }"
>
<x-heroicon-o-bars-3 class="size-6 opacity-100 group-hover:opacity-100 sm:opacity-0" />
</div>

<div class="flex-grow flex items-center justify-center transition-all duration-500"
x-bind:class="{ 'group-hover:-translate-x-44' : showActions }"
x-bind:class="{ 'group-hover:-translate-x-full' : showActions }"
>
<x-links.list-item :$user :$link />
</div>
Expand All @@ -256,11 +255,7 @@ class="absolute left-0 sm:-left-10 top-0 bottom-0 flex w-11 cursor-move items-ce
class="absolute right-0 sm:-right-10 top-0 bottom-0 flex w-11 cursor-pointer items-center justify-center text-slate-300 opacity-50 hover:opacity-100 focus:outline-none transition-all duration-500 z-10 group-hover:right-0"
>
<x-heroicon-o-chevron-double-left class="size-6 opacity-100 group-hover:opacity-100 sm:opacity-0"
x-bind:class="{ 'hidden': showActions }"
x-cloak
/>
<x-heroicon-o-chevron-double-right class="size-6 opacity-100 group-hover:opacity-100 sm:opacity-0"
x-bind:class="{ 'hidden': !showActions }"
x-bind:class="{ 'rotate-180': showActions }"
x-cloak
/>
</div>
Expand Down

0 comments on commit 0aca55f

Please sign in to comment.