diff --git a/index.html b/index.html index 2c8dae1..6609d4f 100644 --- a/index.html +++ b/index.html @@ -658,8 +658,16 @@ async function submitVote(proposalId, voteType, isPetition = false, petitionDeta const netVotes = proposal.upvotes - proposal.downvotes; const voteClass = netVotes > 0 ? 'positive' : netVotes < 0 ? 'negative' : ''; + const proposalButton = document.createElement('a'); + proposalButton.href = getShareableLink(proposal.id); + + proposalButton.addEventListener('click', e => { + e.stopPropagation(); + }); + const proposalCard = document.createElement('div'); proposalCard.className = 'proposal-card'; + proposalButton.appendChild(proposalCard); // Badge for trending or power proposals const badgeHtml = proposal.trending ? @@ -688,16 +696,16 @@ async function submitVote(proposalId, voteType, isPetition = false, petitionDeta ${petitionInfo}