Skip to content

Commit

Permalink
Make venture card tooltips appear instantly
Browse files Browse the repository at this point in the history
Fixes an issue with the tooltips getting stuck
  • Loading branch information
Deflaktor committed Jun 30, 2024
1 parent d73a30b commit e2fa773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/board/boardVentureCards.astro
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ const { activeVentureCards = [], disabled = true, onchange = '' } = Astro.props;
{ventureCards.map((ventureCard, index) => (
<>
{disabled? (
<div id={`ventureCard-${index+1}`} class:list={[`ventureCard card ventureCard-${index+1}`, {'active': activeVentureCards? activeVentureCards![index] == 1 : false}]} data-bs-toggle="tooltip" data-bs-placement="top" data-bs-html="true" data-bs-title={`<b>#${index + 1}</b><br/>${ventureCard.description}`}/>
<div id={`ventureCard-${index+1}`} class:list={[`ventureCard card ventureCard-${index+1}`, {'active': activeVentureCards? activeVentureCards![index] == 1 : false}]} data-bs-animation="false" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-html="true" data-bs-title={`<b>#${index + 1}</b><br/>${ventureCard.description}`}/>
) : (
<span id={`ventureCard-${index+1}`}>
<input type="checkbox" class="btn-check" id={`ventureCardInput-${index+1}`} autocomplete="off" onchange={onchange}/>
<label for={`ventureCardInput-${index+1}`} class:list={[`btn ventureCard card ventureCard-${index+1}`, {'active': activeVentureCards? activeVentureCards![index] == 1 : false}]} data-bs-toggle="tooltip" data-bs-placement="top" data-bs-html="true" data-bs-title={`<b>#${index + 1}</b><br/>${ventureCard.description}`}/>
<label for={`ventureCardInput-${index+1}`} class:list={[`btn ventureCard card ventureCard-${index+1}`, {'active': activeVentureCards? activeVentureCards![index] == 1 : false}]} data-bs-animation="false" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-html="true" data-bs-title={`<b>#${index + 1}</b><br/>${ventureCard.description}`}/>
</span>
)}
</>
Expand Down

0 comments on commit e2fa773

Please sign in to comment.