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

Commit e0849e8

Browse files
committed
update
1 parent b2daa49 commit e0849e8

2 files changed

Lines changed: 20 additions & 16 deletions

File tree

src/components/proposals/ProposalCard.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default function ProposalCard({
162162
href={`/proposals/${proposal.id}`}
163163
className="block group cursor-pointer"
164164
>
165-
<div className="py-4 px-8 rounded-sm mb-3 bg-background group-hover:bg-black transition-colors duration-300 max-w-full overflow-hidden">
165+
<div className="py-4 px-4 sm:px-8 rounded-sm mb-3 bg-background group-hover:bg-black transition-colors duration-300 max-w-full overflow-hidden">
166166
{/* Header */}
167167
<div className="flex flex-col sm:flex-row items-start sm:items-center justify-between mb-3 sm:mb-4 gap-3">
168168
<div className="flex-1 min-w-0">
@@ -171,7 +171,7 @@ export default function ProposalCard({
171171
? `#${proposal.proposal_id}: ${proposal.title}`
172172
: proposal.title}
173173
</h3>
174-
<div className="flex flex-wrap items-center gap-2 mb-2">
174+
<div className="flex flex-wrap items-center gap-2 mb-2 overflow-hidden">
175175
<ProposalStatusBadge
176176
proposal={proposal}
177177
size="sm"
@@ -294,7 +294,7 @@ export default function ProposalCard({
294294
</div>
295295
<span
296296
role="link"
297-
className="text-sm text-primary hover:text-primary/80 transition-colors break-all cursor-pointer flex items-center gap-2"
297+
className="text-sm text-primary hover:text-primary/80 transition-colors break-words cursor-pointer flex items-center gap-2"
298298
onClick={(e) => {
299299
e.preventDefault();
300300
e.stopPropagation();
@@ -305,7 +305,7 @@ export default function ProposalCard({
305305
);
306306
}}
307307
>
308-
<span className="inline-block max-w-full break-all">
308+
<span className="inline-block max-w-full break-words">
309309
{referenceLink}
310310
</span>
311311
<ExternalLinkIcon className="h-4 w-4" />
@@ -319,7 +319,7 @@ export default function ProposalCard({
319319
</div>
320320
<span
321321
role="link"
322-
className="text-sm text-primary hover:text-primary/80 transition-colors break-all cursor-pointer flex items-center gap-2"
322+
className="text-sm text-primary hover:text-primary/80 transition-colors break-words cursor-pointer flex items-center gap-2"
323323
onClick={(e) => {
324324
e.preventDefault();
325325
e.stopPropagation();
@@ -343,7 +343,7 @@ export default function ProposalCard({
343343
d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
344344
/>
345345
</svg>
346-
<span className="inline-block max-w-full break-all">
346+
<span className="inline-block max-w-full break-words">
347347
{airdropTxId}
348348
</span>
349349
</span>
@@ -383,7 +383,7 @@ export default function ProposalCard({
383383
</div>
384384

385385
{/* Metadata */}
386-
<div className="flex flex-wrap items-center gap-2 sm:gap-3 md:gap-4 text-xs text-foreground/75 mb-4">
386+
<div className="flex flex-wrap items-center gap-2 sm:gap-3 md:gap-4 text-xs text-foreground/75 mb-4 overflow-hidden">
387387
{showDAOInfo && (
388388
<div className="flex items-center gap-1 min-w-0 max-w-[120px] sm:max-w-none">
389389
<Building2 className="h-3 w-3 flex-shrink-0" />

src/components/proposals/VoteStatusChart.tsx

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,38 +176,42 @@ const VoteStatusChart = ({
176176
</div>
177177

178178
{/* Vote Counts */}
179-
<div className="flex justify-between items-center text-xs sm:text-sm">
180-
<div className="flex items-center gap-1">
181-
<span className="text-green-500 font-extrabold">For:</span>
179+
<div className="flex justify-between items-center text-xs sm:text-sm overflow-hidden">
180+
<div className="flex items-center gap-1 min-w-0 flex-1">
181+
<span className="text-green-500 font-extrabold flex-shrink-0">
182+
For:
183+
</span>
182184
<TokenBalance
183185
value={voteDisplayData.rawVotesFor}
184186
decimals={8}
185187
variant="abbreviated"
186188
symbol={tokenSymbol}
187-
className="font-medium hidden sm:inline"
189+
className="font-medium hidden sm:inline truncate"
188190
/>
189191
<TokenBalance
190192
value={voteDisplayData.rawVotesFor}
191193
decimals={8}
192194
variant="abbreviated"
193-
className="font-medium sm:hidden"
195+
className="font-medium sm:hidden truncate"
194196
/>
195197
</div>
196198

197-
<div className="flex items-center gap-1">
198-
<span className="text-red-500 font-extrabold">Against:</span>
199+
<div className="flex items-center gap-1 min-w-0 flex-1 justify-end">
200+
<span className="text-red-500 font-extrabold flex-shrink-0">
201+
Against:
202+
</span>
199203
<TokenBalance
200204
value={voteDisplayData.rawVotesAgainst}
201205
decimals={8}
202206
variant="abbreviated"
203207
symbol={tokenSymbol}
204-
className="font-medium hidden sm:inline"
208+
className="font-medium hidden sm:inline truncate"
205209
/>
206210
<TokenBalance
207211
value={voteDisplayData.rawVotesAgainst}
208212
decimals={8}
209213
variant="abbreviated"
210-
className="font-medium sm:hidden"
214+
className="font-medium sm:hidden truncate"
211215
/>
212216
</div>
213217
</div>

0 commit comments

Comments
 (0)