Pagination drowdown styling..

This commit is contained in:
Cüneyt Şentürk 2022-06-03 08:59:21 +03:00
parent 5f40a40fb6
commit e7ea84f62f
2 changed files with 10 additions and 2 deletions

View File

@ -11,7 +11,15 @@
{!! $trigger !!}
</button>
<div id="{{ $id }}" class="absolute right-0 mt-3 py-2 bg-white rounded-md border border-gray-200 shadow-xl z-20 hidden" style="left: auto; min-width: 10rem;">
<div
id="{{ $id }}"
class="absolute right-0 mt-3 py-2 bg-white rounded-md border border-gray-200 shadow-xl z-20 hidden"
@if ($attributes->has('style'))
style="{{ $attributes->get('style') }}"
@else
style="left: auto; min-width: 10rem;"
@endif
>
@stack('button_dropdown_start')
{{ $slot }}

View File

@ -5,7 +5,7 @@
@if ($items->firstItem())
<div class="w-full sm:w-6/12 flex items-center">
<div class="flex items-center text-sm text-black">
<x-dropdown id="pagination-limit">
<x-dropdown id="pagination-limit" style="left:auto;">
<x-slot name="trigger" class="p-0 mt-0 mx-1 bg-transparent text-sm text-center border-b border-black rounded-none" override="class">
{{ request('limit', setting('default.list_limit', '25')) }}
</x-slot>