Fix: Livewire pagination tailwind.blade mit mq-pagination Design überschrieben

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main v1.1.145
boban 2026-04-23 02:12:17 +02:00
parent 8699b9d991
commit ff53344a67
1 changed files with 9 additions and 7 deletions

View File

@ -10,7 +10,7 @@
<svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M7.5 2L3.5 6l4 4" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg> <svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M7.5 2L3.5 6l4 4" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button> </button>
@else @else
<button wire:click="previousPage" wire:loading.attr="disabled" class="mq-pag-btn"> <button type="button" wire:click="previousPage('{{ $paginator->getPageName() }}')" wire:loading.attr="disabled" class="mq-pag-btn">
<svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M7.5 2L3.5 6l4 4" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg> <svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M7.5 2L3.5 6l4 4" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button> </button>
@endif @endif
@ -21,17 +21,19 @@
@endif @endif
@if (is_array($element)) @if (is_array($element))
@foreach ($element as $page => $url) @foreach ($element as $page => $url)
@if ($page == $paginator->currentPage()) <span wire:key="paginator-{{ $paginator->getPageName() }}-page{{ $page }}">
<button class="mq-pag-btn active">{{ $page }}</button> @if ($page == $paginator->currentPage())
@else <button class="mq-pag-btn active">{{ $page }}</button>
<button wire:click="gotoPage({{ $page }})" class="mq-pag-btn">{{ $page }}</button> @else
@endif <button type="button" wire:click="gotoPage({{ $page }}, '{{ $paginator->getPageName() }}')" class="mq-pag-btn">{{ $page }}</button>
@endif
</span>
@endforeach @endforeach
@endif @endif
@endforeach @endforeach
@if ($paginator->hasMorePages()) @if ($paginator->hasMorePages())
<button wire:click="nextPage" wire:loading.attr="disabled" class="mq-pag-btn"> <button type="button" wire:click="nextPage('{{ $paginator->getPageName() }}')" wire:loading.attr="disabled" class="mq-pag-btn">
<svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M4.5 2L8.5 6l-4 4" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg> <svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M4.5 2L8.5 6l-4 4" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button> </button>
@else @else