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:
1 file changed
+5
-3
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user