Skip to content

Commit 632abe7

Browse files
dooly123claude
andcommitted
web: full-width package grid (fill columns instead of capping at two)
Source page for the registry site — kept byte-identical to the deployed basisvr.github.io/packages/index.html. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1b6a0a3 commit 632abe7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/BasisPM.Server/wwwroot/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ <h4 class="mb-2 text-xs font-semibold uppercase tracking-wide text-gray-400">Bun
133133
<option value="name">Name (A–Z)</option>
134134
</select>
135135
</div>
136-
<div id="grid" class="grid gap-4 sm:grid-cols-2"></div>
136+
<div id="grid" class="grid gap-4 grid-cols-[repeat(auto-fill,minmax(18rem,1fr))]"></div>
137137
</section>
138138
</div>
139139

@@ -335,7 +335,7 @@ <h4 class="mb-2 text-xs font-semibold uppercase tracking-wide text-gray-400">Bun
335335
if(state.view==='bundles') return renderBundles();
336336
const grid = document.getElementById('grid');
337337
document.getElementById('count').innerHTML = `<b class="text-gray-900 dark:text-white">${ALL.length}</b> package${ALL.length===1?'':'s'}`;
338-
if(!ALL.length){ grid.innerHTML = `<div class="sm:col-span-2 py-20 text-center text-gray-500 dark:text-gray-400"><p class="text-lg font-semibold text-gray-900 dark:text-white">No packages found</p><p class="mt-1">Try a different search or filter.</p></div>`; return; }
338+
if(!ALL.length){ grid.innerHTML = `<div class="col-span-full py-20 text-center text-gray-500 dark:text-gray-400"><p class="text-lg font-semibold text-gray-900 dark:text-white">No packages found</p><p class="mt-1">Try a different search or filter.</p></div>`; return; }
339339
grid.innerHTML = ALL.map(p=>`
340340
<div data-id="${esc(p.id)}" class="group flex cursor-pointer flex-col rounded-2xl border border-gray-200 bg-white/70 p-5 shadow-sm backdrop-blur transition hover:-translate-y-0.5 hover:shadow-lg hover:shadow-brand/20 dark:border-white/10 dark:bg-white/5">
341341
<div class="flex items-start gap-3">
@@ -429,7 +429,7 @@ <h2 class="flex flex-wrap items-center gap-2 text-xl font-bold">${esc(p.name)} <
429429
function renderBundles(){
430430
const grid = document.getElementById('grid');
431431
document.getElementById('count').innerHTML = `<b class="text-gray-900 dark:text-white">${ALL.length}</b> bundle${ALL.length===1?'':'s'}`;
432-
if(!ALL.length){ grid.innerHTML = `<div class="sm:col-span-2 py-20 text-center text-gray-500 dark:text-gray-400"><p class="text-lg font-semibold text-gray-900 dark:text-white">No bundles yet</p><p class="mt-1">Build one from the Basis Package Manager and submit it.</p></div>`; return; }
432+
if(!ALL.length){ grid.innerHTML = `<div class="col-span-full py-20 text-center text-gray-500 dark:text-gray-400"><p class="text-lg font-semibold text-gray-900 dark:text-white">No bundles yet</p><p class="mt-1">Build one from the Basis Package Manager and submit it.</p></div>`; return; }
433433
grid.innerHTML = ALL.map(b=>{
434434
const n = (b.packages||[]).length;
435435
const basis = b.basisBranch ? `${esc(b.basisBranch)}${b.basisCommit?'@'+esc(b.basisCommit):''}` : '';

0 commit comments

Comments
 (0)