Skip to content

Commit

Permalink
feat: add tooltip for ended proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati0x committed Dec 10, 2024
1 parent bf3a648 commit 1caf5ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/web/components/ProposalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ export function ProposalCard({
{isAllocationView ?
<div className="flex w-full flex-wrap items-center justify-between gap-6">
<div className="flex items-center gap-8 flex-grow flex-wrap">
<div className="flex-grow sm:max-w-[460px]">
<div
className={`flex-grow sm:max-w-[460px] ${isProposalEnded && "tooltip"}`}
data-tip="Can't change support from ended proposals."
>
<input
type="range"
min={0}
Expand Down

0 comments on commit 1caf5ac

Please sign in to comment.