fix(web): make the whole repository card open the repository

Only the name was a link, so most of a rectangle that reacts to the pointer
led nowhere.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
nocodeandClaude Opus 5 committed 2026-09-23 23:20:06 +02:00
1 parent 262274473a
commit e397abcfcd
1 file changed
+5 -3
+5 -3
View File
@@ -28,10 +28,12 @@ const LEVELS = { STAFF: 1, DEV: 2, OWNER: 3 };
// --- List -------------------------------------------------------------------
function repositoryCard(repository) {
// The card is the link: clicking anywhere on it opens the repository, which
// is what a rectangle that reacts to the pointer promises.
return h(
'article',
{ class: 'repo-card' },
h('h3', {}, h('a', { href: `#/repos/${repository.fullName}`, text: repository.name })),
'a',
{ class: 'repo-card', href: `#/repos/${repository.fullName}` },
h('h3', { text: repository.name }),
h('p', { class: 'muted', text: repository.description || 'Sans description.' }),
h(
'div',