Use dialogs to finalize and duplicate polls (#1099)

This commit is contained in:
Luke Vella 2024-05-16 16:14:48 +08:00 committed by GitHub
parent dee3e1b7d0
commit 2185ec5b83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 442 additions and 397 deletions

View file

@ -31,7 +31,7 @@ export const VoteSummaryProgressBar = (props: {
<Tooltip>
<TooltipTrigger asChild>
<div
className="h-full bg-green-500 hover:opacity-75"
className="h-full bg-green-500 opacity-75 hover:opacity-100"
style={{
width: (props.yes.length / props.total) * 100 + "%",
}}
@ -44,7 +44,7 @@ export const VoteSummaryProgressBar = (props: {
<Tooltip>
<TooltipTrigger asChild>
<div
className="h-full bg-amber-400 hover:opacity-75"
className="h-full bg-amber-400 opacity-75 hover:opacity-100"
style={{
width: (props.ifNeedBe.length / props.total) * 100 + "%",
}}
@ -57,7 +57,7 @@ export const VoteSummaryProgressBar = (props: {
<Tooltip>
<TooltipTrigger asChild>
<div
className="h-full bg-gray-300 hover:opacity-75"
className="h-full bg-gray-300 opacity-75 hover:opacity-100"
style={{
width: (props.no.length / props.total) * 100 + "%",
}}