|
7 | 7 | {{-- Version switcher --}} |
8 | 8 | @if($platform === 'desktop') |
9 | 9 | <livewire:version-switcher :versions="[ |
10 | | - 1 => 'v1.x', |
11 | | - 2 => 'v2.x' |
| 10 | + 1 => '1.x', |
| 11 | + 2 => '2.x' |
12 | 12 | ]" /> |
13 | 13 | @endif |
14 | 14 |
|
|
22 | 22 | <x-docs.separator class="mt-4" /> |
23 | 23 |
|
24 | 24 | {{-- Table of contents --}} |
25 | | - <div class="xl:hidden pt-5"> |
| 25 | + <div class="xl:hidden pt-9 space-y-4"> |
26 | 26 |
|
27 | 27 | {{-- Version switcher --}} |
28 | 28 | @if($platform === 'desktop') |
29 | 29 | <livewire:version-switcher :versions="[ |
30 | | - 1 => 'v1.x', |
31 | | - 2 => 'v2.x' |
| 30 | + 1 => '1.x', |
| 31 | + 2 => '2.x' |
32 | 32 | ]" /> |
33 | 33 | @endif |
34 | 34 |
|
35 | 35 | {{-- Copy as Markdown Button --}} |
36 | | - <x-docs.copy-markdown-button class="mt-4" /> |
37 | | - |
38 | | - <h3 class="inline-flex items-center gap-1.5 text-sm opacity-50"> |
39 | | - {{-- Icon --}} |
40 | | - <x-icons.stacked-lines class="size-[18px]" /> |
41 | | - {{-- Label --}} |
42 | | - <div>On this page</div> |
43 | | - </h3> |
44 | | - @if (count($tableOfContents) > 0) |
45 | | - <div |
46 | | - class="mt-2 flex flex-col space-y-2 border-l text-xs dark:border-l-white/15" |
47 | | - > |
48 | | - @foreach ($tableOfContents as $item) |
49 | | - <a |
50 | | - href="#{{ $item['anchor'] }}" |
51 | | - @class([ |
52 | | - 'transition duration-300 ease-in-out will-change-transform hover:translate-x-0.5 hover:text-violet-400 hover:opacity-100 dark:text-white/80', |
53 | | - 'pb-1 pl-3' => $item['level'] == 2, |
54 | | - 'py-1 pl-6' => $item['level'] == 3, |
55 | | - ]) |
56 | | - > |
57 | | - {{ $item['title'] }} |
58 | | - </a> |
59 | | - @endforeach |
60 | | - </div> |
61 | | - @endif |
| 36 | + <x-docs.copy-markdown-button /> |
| 37 | + |
| 38 | + <div> |
| 39 | + <h3 class="inline-flex items-center gap-1.5 text-sm opacity-50"> |
| 40 | + {{-- Icon --}} |
| 41 | + <x-icons.stacked-lines class="size-[18px]" /> |
| 42 | + {{-- Label --}} |
| 43 | + <div>On this page</div> |
| 44 | + </h3> |
| 45 | + @if (count($tableOfContents) > 0) |
| 46 | + <div |
| 47 | + class="mt-2 flex flex-col space-y-2 border-l text-xs dark:border-l-white/15" |
| 48 | + > |
| 49 | + @foreach ($tableOfContents as $item) |
| 50 | + <a |
| 51 | + href="#{{ $item['anchor'] }}" |
| 52 | + @class([ |
| 53 | + 'transition duration-300 ease-in-out will-change-transform hover:translate-x-0.5 hover:text-violet-400 hover:opacity-100 dark:text-white/80', |
| 54 | + 'pb-1 pl-3' => $item['level'] == 2, |
| 55 | + 'py-1 pl-6' => $item['level'] == 3, |
| 56 | + ]) |
| 57 | + > |
| 58 | + {{ $item['title'] }} |
| 59 | + </a> |
| 60 | + @endforeach |
| 61 | + </div> |
| 62 | + @endif |
| 63 | + </div> |
| 64 | + |
62 | 65 | </div> |
63 | 66 |
|
64 | 67 | <div |
|
0 commit comments