diff --git a/resources/css/showcase.css b/resources/css/showcase.css index f2c44559..7bbaae38 100644 --- a/resources/css/showcase.css +++ b/resources/css/showcase.css @@ -440,6 +440,12 @@ [data-md-showcase-search-bar-title] { flex: 1 1 auto; } + + /* Data: the table's own horizontal scroll stays the caller's, as table.css's header says. */ + [data-md-showcase-table-scroll] { + width: 100%; + overflow-x: auto; + } } /* A handful of call sites (, , ) forward only `class` and diff --git a/resources/views/showcase/sections/data.blade.php b/resources/views/showcase/sections/data.blade.php index 387fe327..eedf2a88 100644 --- a/resources/views/showcase/sections/data.blade.php +++ b/resources/views/showcase/sections/data.blade.php @@ -1,56 +1,56 @@ @php $examples = [ 'Data table' => <<<'BLADE' -
+
Name - Size + Size Expires - Actions + Actions contract.pdf - 1.2 MB + 1.2 MB in 1 hour - + design-review.mp4 - 3.4 GB + 3.4 GB in 7 days - + holiday-photos.zip - 248 MB + 248 MB in 3 days - +
BLADE, 'Pagination' => <<<'BLADE' -
+ {{ (new \Illuminate\Pagination\LengthAwarePaginator(range(1, 10), 95, 10, 3, ['path' => '#data']))->links() }} {{ (new \Illuminate\Pagination\Paginator(range(1, 11), 10, 2, ['path' => '#data']))->links() }} -
+ BLADE, ]; @endphp -
-

Data

+ +

Data

-

+

<x-table>, <x-sort-header>, and Laravel's and Livewire's paginators.

@foreach ($examples as $title => $code) @endforeach -
+