|
2 | 2 |
|
3 | 3 | <template> |
4 | 4 | <!-- Package header — matches area-header in [...name].vue --> |
5 | | - <header class="bg-[--bg] pt-2"> |
| 5 | + <header class="bg-[--bg] pt-5 pb-1 w-full container"> |
6 | 6 | <div class="min-w-0"> |
7 | 7 | <!-- Package name --> |
8 | 8 | <div class="min-w-0 flex items-center gap-2 justify-between"> |
|
19 | 19 | </div> |
20 | 20 | </header> |
21 | 21 |
|
22 | | - <div |
23 | | - class="sticky top-14 z-1 pt-2 bg-bg border-b border-border flex flex-col md:flex-row-reverse flex-wrap gap-2 justify-between" |
24 | | - > |
25 | | - <!-- Version --> |
26 | | - <span class="inline-flex items-baseline font-mono text-base sm:text-lg shrink-0"> |
27 | | - <SkeletonInline class="h-6 w-20" /> |
28 | | - </span> |
29 | | - <!-- Docs + Code + Compare nav placeholder (hidden on mobile) --> |
30 | | - <div class="flex items-center gap-0.5 p-0.5"> |
31 | | - <SkeletonInline class="h-7 w-22 rounded" /> |
32 | | - <SkeletonInline class="h-7 w-20 rounded" /> |
33 | | - <SkeletonInline class="h-7 w-26 rounded" /> |
| 22 | + <div class="sticky top-14 z-1 pt-3 bg-bg border-b border-border w-full"> |
| 23 | + <div class="w-full container flex flex-col md:flex-row-reverse flex-wrap gap-2 justify-between"> |
| 24 | + <!-- Version --> |
| 25 | + <span class="inline-flex items-baseline font-mono text-base sm:text-lg shrink-0"> |
| 26 | + <SkeletonInline class="h-6 w-20" /> |
| 27 | + </span> |
| 28 | + <!-- Docs + Code + Compare nav placeholder (hidden on mobile) --> |
| 29 | + <div class="flex items-center gap-0.5 p-0.5"> |
| 30 | + <SkeletonInline class="h-7 w-22 rounded" /> |
| 31 | + <SkeletonInline class="h-7 w-20 rounded" /> |
| 32 | + <SkeletonInline class="h-7 w-26 rounded" /> |
| 33 | + </div> |
34 | 34 | </div> |
35 | 35 | </div> |
36 | 36 | <article |
37 | 37 | aria-busy="true" |
38 | 38 | :aria-label="$t('package.skeleton.loading')" |
39 | | - class="package-page motion-safe:animate-fade-in" |
| 39 | + class="package-page motion-safe:animate-fade-in container w-full" |
40 | 40 | > |
41 | 41 | <!-- Package details — matches area-details in [...name].vue --> |
42 | 42 | <section class="area-details pt-4"> |
|
203 | 203 | <!-- Sidebar — matches area-sidebar in [...name].vue --> |
204 | 204 | <div class="area-sidebar"> |
205 | 205 | <div |
206 | | - class="sticky top-30 xl:top-14 space-y-6 sm:space-y-8 min-w-0 overflow-y-auto pe-2.5 lg:(max-h-[calc(100dvh-8.5rem)] overscroll-contain) xl:(pt-2 max-h-[calc(100dvh-6rem)])" |
| 206 | + class="sticky top-30 xl:top-14 space-y-6 sm:space-y-8 min-w-0 overflow-y-auto pe-2.5 lg:(max-h-[calc(100dvh-8.5rem)] overscroll-contain) xl:(max-h-[calc(100dvh-6rem)])" |
207 | 207 | > |
208 | 208 | <div class="flex flex-col gap-4 sm:gap-6 xl:pt-4"> |
209 | 209 | <!-- Download stats — matches CollapsibleSection + sparkline skeleton --> |
|
0 commit comments