Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Commit d56a6fa

Browse files
committed
update
1 parent e0849e8 commit d56a6fa

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/proposals/ProposalCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default function ProposalCard({
155155
<motion.div
156156
initial={{ opacity: 0, y: 20 }}
157157
whileInView={{ opacity: 1, y: 0 }}
158-
viewport={{ once: false, margin: "0px 0px -100px 0px", amount: 0.3 }}
158+
viewport={{ once: true, margin: "0px 0px 0px 0px", amount: 0.3 }}
159159
transition={{ duration: 0.5, ease: "easeOut" }}
160160
>
161161
<Link

src/components/proposals/VoteStatusChart.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const VoteStatusChart = ({
9494
// Show loading state
9595
if (isLoadingVotes && !error) {
9696
return (
97-
<div className="flex items-center justify-center p-4">
97+
<div className="flex items-center justify-center p-4 min-h-[60px]">
9898
<div className="animate-spin rounded-full h-6 w-6 border-b-2 border-primary"></div>
9999
<span className="ml-2 text-sm text-muted-foreground">
100100
Loading vote data...
@@ -106,7 +106,7 @@ const VoteStatusChart = ({
106106
// Show error state with retry
107107
if (error || (!hasData && !isLoadingVotes)) {
108108
return (
109-
<div className="flex flex-col items-center justify-center p-4 space-y-2">
109+
<div className="flex flex-col items-center justify-center p-4 space-y-2 min-h-[60px]">
110110
<div className="flex items-center text-destructive">
111111
<AlertCircle className="h-4 w-4 mr-2" />
112112
<span className="text-sm">Failed to load vote data</span>
@@ -131,7 +131,7 @@ const VoteStatusChart = ({
131131

132132
if (!voteDisplayData || !calculations || !progressBarCalculations) {
133133
return (
134-
<div className="flex items-center justify-center p-4">
134+
<div className="flex items-center justify-center p-4 min-h-[60px]">
135135
<span className="text-sm text-muted-foreground">
136136
No vote data available
137137
</span>
@@ -141,7 +141,7 @@ const VoteStatusChart = ({
141141

142142
// Main vote display
143143
return (
144-
<div className="space-y-2">
144+
<div className="space-y-2 min-h-[60px]">
145145
{/* Vote Progress Bar */}
146146
<div className="relative">
147147
<div className="h-3 sm:h-4 bg-muted rounded-sm overflow-hidden relative">

0 commit comments

Comments
 (0)