Skip to content

Commit 4d57583

Browse files
committed
chore: update package grid
1 parent 08cacfb commit 4d57583

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

app/components/Package/Skeleton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
<div
201201
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)])"
202202
>
203-
<div class="flex flex-col gap-4 sm:gap-6 xl:(pt-2)">
203+
<div class="flex flex-col gap-4 sm:gap-6 xl:pt-4">
204204
<!-- Download stats — matches CollapsibleSection + sparkline skeleton -->
205205
<section>
206206
<div class="flex items-center justify-between mb-3 px-1">

app/pages/package/[[org]]/[name].vue

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ const showSkeleton = shallowRef(false)
655655
<article id="package-article" :class="$style.packagePage">
656656
<!-- Package details -->
657657
<section :class="$style.areaDetails">
658-
<div class="mb-4">
658+
<div class="mb-4 pt-4">
659659
<!-- Description container with min-height to prevent CLS -->
660660
<div class="max-w-2xl">
661661
<p v-if="pkgDescription" class="text-fg-muted text-base m-0">
@@ -1155,7 +1155,7 @@ const showSkeleton = shallowRef(false)
11551155
</section>
11561156

11571157
<PackageSidebar :class="$style.areaSidebar">
1158-
<div class="flex flex-col gap-4 sm:gap-6 xl:(pt-2)">
1158+
<div class="flex flex-col gap-4 sm:gap-6 xl:pt-4">
11591159
<!-- Team access controls (for scoped packages when connected) -->
11601160
<ClientOnly>
11611161
<PackageAccessControls :package-name="pkg.name" />
@@ -1258,20 +1258,18 @@ const showSkeleton = shallowRef(false)
12581258
/* Mobile: single column, sidebar above readme */
12591259
grid-template-columns: minmax(0, 1fr);
12601260
grid-template-areas:
1261-
'header'
12621261
'details'
12631262
'install'
12641263
'vulns'
12651264
'sidebar'
12661265
'readme';
12671266
}
12681267
1269-
/* Tablet/medium: header/install/vulns full width, readme+sidebar side by side */
1268+
/* Tablet/medium: install/vulns full width, readme+sidebar side by side */
12701269
@media (min-width: 1024px) {
12711270
.packagePage {
12721271
grid-template-columns: 2fr 1fr;
12731272
grid-template-areas:
1274-
'header header'
12751273
'details details'
12761274
'install install'
12771275
'vulns vulns'
@@ -1285,7 +1283,6 @@ const showSkeleton = shallowRef(false)
12851283
.packagePage {
12861284
grid-template-columns: 1fr 20rem;
12871285
grid-template-areas:
1288-
'header sidebar'
12891286
'details sidebar'
12901287
'install sidebar'
12911288
'vulns sidebar'
@@ -1299,10 +1296,6 @@ const showSkeleton = shallowRef(false)
12991296
min-width: 0;
13001297
}
13011298
1302-
.areaHeader {
1303-
grid-area: header;
1304-
}
1305-
13061299
.areaDetails {
13071300
grid-area: details;
13081301
}

0 commit comments

Comments
 (0)