From 9e661836d6d6ceb84b25a4cf1135556251d11325 Mon Sep 17 00:00:00 2001 From: Andreas Reinhold / reini Date: Tue, 15 Sep 2026 04:57:09 +0200 Subject: [PATCH] Rewrite the showcase's Data section without Tailwind MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plan step 38: text.css already has the three classes this section needed (md-text-end, md-tabular, md-visually-hidden), so only the table's own scroll wrapper and the pagination list move — the wrapper to a data-md-showcase-table-scroll hook, the two paginators onto . Every #data id and data-md-list-row/aria-selected selector the Chromium DataTest reads is unchanged. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9 --- resources/css/showcase.css | 6 ++++ .../views/showcase/sections/data.blade.php | 30 +++++++++---------- 2 files changed, 21 insertions(+), 15 deletions(-) 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 -
+