Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit 625dda1

Browse files
committed
UI fixes
1 parent 5cdb6e0 commit 625dda1

File tree

5 files changed

+27
-27
lines changed

5 files changed

+27
-27
lines changed

resources/views/button-with-dropdown.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<x-dynamic-component :component="$wrapperName" {{ $attributes->class('w-full bg-white border border-gray-300 rounded-md shadow-sm px-4 py-2 inline-flex justify-center text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500') }}>
1+
<x-dynamic-component :component="$wrapperName" {{ $attributes->class('w-full bg-white border border-gray-300 rounded-md shadow-sm px-2.5 sm:px-4 py-2 inline-flex justify-center text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500') }}>
22
<x-slot:trigger>
33
{{ $button }}
44
</x-slot:trigger>

resources/views/table/controls.blade.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
<div class="flex flex-row sm:justify-end mb-3 flex-wrap sm:flex-nowrap px-4 sm:px-0">
1+
<div class="flex flex-row sm:justify-end mb-3 px-4 sm:px-0 -mr-2 sm:-mr-3">
22
@if($table->hasFilters())
3-
<div class="order-2 sm:order-1 mr-3">
3+
<div class="order-1 mr-2 sm:mr-3">
44
@include('splade::table.filters')
55
</div>
66
@endif
77

88
@if($table->searchInputs('global'))
9-
<div class="w-full order-1 sm:order-2 flex-grow mb-3 sm:mb-0 sm:mr-3">
9+
<div class="w-full order-2 flex-grow mr-2 sm:mr-3">
1010
@include('splade::table.global-search')
1111
</div>
1212
@endif
1313

1414
<button
1515
v-show="@js($canResetTable()) || table.columnsAreToggled || table.hasForcedVisibleSearchInputs"
1616
type="button"
17-
class="order-5 sm:order-3 ml-auto sm:mr-3 bg-white border rounded-md shadow-sm px-4 py-2 inline-flex justify-center text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 border-gray-300"
17+
class="order-5 sm:order-3 ml-auto mr-2 sm:mr-3 bg-white border rounded-md shadow-sm px-2.5 sm:px-4 py-2 inline-flex justify-center text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 border-gray-300"
1818
@click.prevent="table.reset"
1919
dusk="reset-table"
2020
>
21-
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-gray-400" viewBox="0 0 20 20" fill="currentColor">
21+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" viewBox="0 0 20 20" fill="currentColor">
2222
<path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd" />
2323
</svg>
2424

25-
<span>Reset</span>
25+
<span class="ml-2 hidden sm:inline">Reset</span>
2626
</button>
2727

2828
@if($table->hasToggleableSearchInputs())
29-
<div class="order-3 sm:order-4 mr-3">
29+
<div class="order-3 sm:order-4 mr-2 sm:mr-3">
3030
@include('splade::table.add-search-row')
3131
</div>
3232
@endif
3333

3434
@if($table->hasToggleableColumns())
35-
<div class="order-4 sm:order-5">
35+
<div class="order-4 sm:order-5 mr-2 sm:mr-3">
3636
@include('splade::table.columns')
3737
</div>
3838
@endif

resources/views/table/global-search.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<div class="relative">
22
<input
3-
class="block w-full pl-9 text-sm rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 border-gray-300"
3+
class="block w-full sm:pl-9 text-sm rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 border-gray-300"
44
placeholder="{{ $table->searchInputs('global')->label }}"
55
value="{{ $table->searchInputs('global')->value }}"
66
type="text"
77
name="searchInput-global"
88
@input="table.debounceUpdateQuery('filter[global]', $event.target.value, $event.target)"
99
>
10-
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
10+
<div class="absolute inset-y-0 left-0 pl-3 hidden sm:flex items-center pointer-events-none">
1111
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" viewBox="0 0 20 20" fill="currentColor">
1212
<path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd" />
1313
</svg>

resources/views/table/pagination.blade.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<nav role="navigation" aria-label="{{ __('Pagination Navigation') }}" class="flex items-center justify-between px-4 sm:px-0 py-3">
22
<div class="flex justify-between flex-1 md:hidden">
33
@if ($paginator->onFirstPage())
4-
<span class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
4+
<span class="relative inline-flex items-center px-4 py-2 text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
55
{!! __('pagination.previous') !!}
66
</span>
77
@else
8-
<Link dusk="pagination-simple-previous" href="{{ $paginator->previousPageUrl() }}" class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
8+
<Link dusk="pagination-simple-previous" href="{{ $paginator->previousPageUrl() }}" class="relative inline-flex items-center px-4 py-2 text-xs sm:text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
99
{!! __('pagination.previous') !!}
1010
</Link>
1111
@endif
1212

1313
@include('splade::table.per-page-selector')
1414

1515
@if ($paginator->hasMorePages())
16-
<Link dusk="pagination-simple-next" href="{{ $paginator->nextPageUrl() }}" class="relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
16+
<Link dusk="pagination-simple-next" href="{{ $paginator->nextPageUrl() }}" class="relative inline-flex items-center px-4 py-2 ml-3 text-xs sm:text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
1717
{!! __('pagination.next') !!}
1818
</Link>
1919
@else
20-
<span class="relative inline-flex items-center px-4 py-2 ml-3 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
20+
<span class="relative inline-flex items-center px-4 py-2 text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
2121
{!! __('pagination.next') !!}
2222
</span>
2323
@endif
@@ -28,7 +28,7 @@
2828
@include('splade::table.per-page-selector')
2929

3030
<div class="hidden lg:block ml-3">
31-
<p class="text-sm text-gray-700 leading-5">
31+
<p class="text-xs sm:text-sm text-gray-700 leading-5">
3232
@if ($paginator->firstItem())
3333
<span class="font-medium">{{ $paginator->firstItem() }}</span>
3434
{!! __('to') !!}
@@ -48,14 +48,14 @@
4848
{{-- Previous Page Link --}}
4949
@if ($paginator->onFirstPage())
5050
<span aria-disabled="true" aria-label="{{ __('pagination.previous') }}">
51-
<span class="relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default rounded-l-md leading-5" aria-hidden="true">
51+
<span class="relative inline-flex items-center px-2 py-2 text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default rounded-l-md leading-5" aria-hidden="true">
5252
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
5353
<path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
5454
</svg>
5555
</span>
5656
</span>
5757
@else
58-
<Link dusk="pagination-previous" href="{{ $paginator->previousPageUrl() }}" rel="prev" class="relative inline-flex items-center px-2 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-l-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150" aria-label="{{ __('pagination.previous') }}">
58+
<Link dusk="pagination-previous" href="{{ $paginator->previousPageUrl() }}" rel="prev" class="relative inline-flex items-center px-2 py-2 text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-l-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150" aria-label="{{ __('pagination.previous') }}">
5959
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
6060
<path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
6161
</svg>
@@ -67,7 +67,7 @@
6767
{{-- "Three Dots" Separator --}}
6868
@if (is_string($element))
6969
<span aria-disabled="true">
70-
<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 cursor-default leading-5">{{ $element }}</span>
70+
<span class="relative inline-flex items-center px-4 py-2 -ml-px text-xs sm:text-sm font-medium text-gray-700 bg-white border border-gray-300 cursor-default leading-5">{{ $element }}</span>
7171
</span>
7272
@endif
7373

@@ -76,10 +76,10 @@
7676
@foreach ($element as $page => $url)
7777
@if ($page == $paginator->currentPage())
7878
<span aria-current="page">
79-
<span class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">{{ $page }}</span>
79+
<span class="relative inline-flex items-center px-4 py-2 -ml-px text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5">{{ $page }}</span>
8080
</span>
8181
@else
82-
<Link dusk="pagination-{{ $page }}" href="{{ $url }}" class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 hover:text-gray-500 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150" aria-label="{{ __('Go to page :page', ['page' => $page]) }}">
82+
<Link dusk="pagination-{{ $page }}" href="{{ $url }}" class="relative inline-flex items-center px-4 py-2 -ml-px text-xs sm:text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 hover:text-gray-500 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150" aria-label="{{ __('Go to page :page', ['page' => $page]) }}">
8383
{{ $page }}
8484
</Link>
8585
@endif
@@ -89,14 +89,14 @@
8989

9090
{{-- Next Page Link --}}
9191
@if ($paginator->hasMorePages())
92-
<Link dusk="pagination-next" href="{{ $paginator->nextPageUrl() }}" rel="next" class="relative inline-flex items-center px-2 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-r-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150" aria-label="{{ __('pagination.next') }}">
92+
<Link dusk="pagination-next" href="{{ $paginator->nextPageUrl() }}" rel="next" class="relative inline-flex items-center px-2 py-2 -ml-px text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 rounded-r-md leading-5 hover:text-gray-400 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150" aria-label="{{ __('pagination.next') }}">
9393
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
9494
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
9595
</svg>
9696
</Link>
9797
@else
9898
<span aria-disabled="true" aria-label="{{ __('pagination.next') }}">
99-
<span class="relative inline-flex items-center px-2 py-2 -ml-px text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default rounded-r-md leading-5" aria-hidden="true">
99+
<span class="relative inline-flex items-center px-2 py-2 -ml-px text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default rounded-r-md leading-5" aria-hidden="true">
100100
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
101101
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
102102
</svg>

resources/views/table/simple-pagination.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<nav role="navigation" aria-label="Pagination Navigation" class="flex justify-between px-4 sm:px-0 py-3">
22
{{-- Previous Page Link --}}
33
@if ($paginator->onFirstPage())
4-
<span class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
4+
<span class="relative inline-flex items-center px-4 py-2 text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
55
{!! __('pagination.previous') !!}
66
</span>
77
@else
8-
<Link dusk="pagination-simple-previous" href="{{ $paginator->previousPageUrl() }}" rel="prev" class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
8+
<Link dusk="pagination-simple-previous" href="{{ $paginator->previousPageUrl() }}" rel="prev" class="relative inline-flex items-center px-4 py-2 text-xs sm:text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
99
{!! __('pagination.previous') !!}
1010
</Link>
1111
@endif
@@ -14,11 +14,11 @@
1414

1515
{{-- Next Page Link --}}
1616
@if ($paginator->hasMorePages())
17-
<Link dusk="pagination-simple-next" href="{{ $paginator->nextPageUrl() }}" rel="next" class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
17+
<Link dusk="pagination-simple-next" href="{{ $paginator->nextPageUrl() }}" rel="next" class="relative inline-flex items-center px-4 py-2 text-xs sm:text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 rounded-md hover:text-gray-500 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
1818
{!! __('pagination.next') !!}
1919
</Link>
2020
@else
21-
<span class="relative inline-flex items-center px-4 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
21+
<span class="relative inline-flex items-center px-4 py-2 text-xs sm:text-sm font-medium text-gray-500 bg-white border border-gray-300 cursor-default leading-5 rounded-md">
2222
{!! __('pagination.next') !!}
2323
</span>
2424
@endif

0 commit comments

Comments
 (0)