From d7ab575550eebb70eff56d4ced019ed6c1f903af Mon Sep 17 00:00:00 2001 From: nocode Date: Wed, 23 Sep 2026 21:35:34 +0200 Subject: [PATCH] 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) --- src/web/public/views/repositories.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/web/public/views/repositories.js b/src/web/public/views/repositories.js index 59a7510..ff3ef7a 100644 --- a/src/web/public/views/repositories.js +++ b/src/web/public/views/repositories.js @@ -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',