Skip to content

Commit def5fe8

Browse files
raifdmuellerclaude
andcommitted
fix: remove links from feedback badges on cards
Upvote count and comment count on cards are now plain badges without links. Voting and discussing happens via the buttons in the anchor modal. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8bf9002 commit def5fe8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

website/src/components/card-grid.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,25 +190,25 @@ function renderAnchorCard(anchor, categoryColor) {
190190
${
191191
fb && fb.upvotes > 1
192192
? `
193-
<a href="${escapeHtml(fb.url)}" target="_blank" rel="noopener noreferrer" class="meta-badge feedback-badge" title="Upvotes" onclick="event.stopPropagation()">
193+
<span class="meta-badge">
194194
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
195195
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5"></path>
196196
</svg>
197197
<span>${fb.upvotes}</span>
198-
</a>
198+
</span>
199199
`
200200
: ''
201201
}
202202
203203
${
204204
fb && fb.comments > 0
205205
? `
206-
<a href="${escapeHtml(fb.url)}" target="_blank" rel="noopener noreferrer" class="meta-badge feedback-badge" title="Discussion" onclick="event.stopPropagation()">
206+
<span class="meta-badge">
207207
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
208208
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"></path>
209209
</svg>
210210
<span>${fb.comments}</span>
211-
</a>
211+
</span>
212212
`
213213
: ''
214214
}

0 commit comments

Comments
 (0)