Skip to content

Commit

Permalink
Fixed Minor Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lianmaymesi committed Mar 8, 2024
1 parent 8ea2e1f commit 88dcc63
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
6 changes: 3 additions & 3 deletions resources/views/components/actions.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<div class=""
:class="{
'absolute shadow-md z-50 text-left right-0 top-12 py-4 px-2 flex flex-col items-start w-full !min-w-[240px] bg-white border rounded-lg gap-y-2': show &
window.innerWidth < 1024,
'flex items-center gap-x-2': window.innerWidth > 1024
width < 1024,
'flex items-center gap-x-2': width > 1024
}"
x-show="show || window.innerWidth > 1024" @click.outside="show = false" style="display: none;">
x-show="show || width > 1024" @click.outside="show = false" style="display: none;">
{{ $slot }}
</div>
</div>
24 changes: 11 additions & 13 deletions resources/views/components/navigate/item.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@
<a href="{{ $route }}" @if (!$noNavigate) wire:navigate @endif
class="flex items-center p-2 text-sm font-medium leading-none rounded-lg hover:bg-indigo-700 hover:text-indigo-50"
x-bind:class="$current('{{ $path }}') ? 'bg-indigo-700 text-indigo-50' : 'text-slate-700'">
<div class="flex justify-between w-full">
<div class="flex items-center">
@if (isset($icon))
{{ $icon }}
@else
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-4 h-4 mr-3">
<path stroke-linecap="round" stroke-linejoin="round"
d="m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z" />
</svg>
@endif
<span>{{ $slot }}</span>
</div>
<div class="flex items-center gap-x-3">
@if (isset($icon))
{{ $icon }}
@else
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-4 h-4">
<path stroke-linecap="round" stroke-linejoin="round"
d="m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z" />
</svg>
@endif
<span>{{ $slot }}</span>
</div>
</a>
@else
Expand Down

0 comments on commit 88dcc63

Please sign in to comment.