|
1 |
| -<div> |
2 |
| - <class-table :rows="{{ json_encode($rows) }}"></class-table> |
| 1 | +<div class="border-t border-b border-grey-light"> |
| 2 | + <div class="max-h-sm overflow-y-scroll"> |
| 3 | + <table class="w-full text-left table-collapse"> |
| 4 | + <thead> |
| 5 | + <tr> |
| 6 | + <th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Class</th> |
| 7 | + <th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Properties</th> |
| 8 | + <th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Description</th> |
| 9 | + </tr> |
| 10 | + </thead> |
| 11 | + <tbody class="align-baseline"> |
| 12 | + @foreach ($rows as $row) |
| 13 | + <tr> |
| 14 | + <td class="p-2 border-t {{ $loop->first ? 'border-smoke' : 'border-smoke-light' }} font-mono text-xs text-purple-dark whitespace-no-wrap">{{ $row[0] }}</td> |
| 15 | + <td class="p-2 border-t {{ $loop->first ? 'border-smoke' : 'border-smoke-light' }} font-mono text-xs text-blue-dark whitespace-pre">{{ $row[1] }}</td> |
| 16 | + <td class="p-2 border-t {{ $loop->first ? 'border-smoke' : 'border-smoke-light' }} text-sm text-grey-darker whitespace-no-wrap lg:whitespace-normal">{{ $row[2] }}</td> |
| 17 | + </tr> |
| 18 | + @endforeach |
| 19 | + </tbody> |
| 20 | + </table> |
| 21 | + </div> |
3 | 22 | </div>
|
4 |
| -{{-- <div class="border-t border-grey-lighter"> |
5 |
| - <table class="w-full text-left table-collapse"> |
6 |
| - <thead> |
7 |
| - <tr> |
8 |
| - <th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Class</th> |
9 |
| - <th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Properties</th> |
10 |
| - <th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Description</th> |
11 |
| - </tr> |
12 |
| - </thead> |
13 |
| - <tbody class="align-baseline"> |
14 |
| - @foreach ($rows as $row) |
15 |
| - <tr> |
16 |
| - <td class="p-2 border-t {{ $loop->first ? 'border-smoke' : 'border-smoke-light' }} font-mono text-xs text-purple-dark whitespace-no-wrap">{{ $row[0] }}</td> |
17 |
| - <td class="p-2 border-t {{ $loop->first ? 'border-smoke' : 'border-smoke-light' }} font-mono text-xs text-blue-dark whitespace-pre">{{ $row[1] }}</td> |
18 |
| - <td class="p-2 border-t {{ $loop->first ? 'border-smoke' : 'border-smoke-light' }} text-sm text-grey-darker">{{ $row[2] }}</td> |
19 |
| - </tr> |
20 |
| - @endforeach |
21 |
| - </tbody> |
22 |
| - </table> |
23 |
| -</div> |
24 |
| - --}} |
0 commit comments