Skip to content

Commit

Permalink
fix: minor ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
helmturner committed Jul 4, 2024
1 parent a2b3010 commit a5f6558
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/features/voting/ProposalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ export default function ProposalCard(props: ProposalCardProps) {

return (
<Card>
<CardHeader className="pb-0 pt-6 flex flex-row justify-between">
<CardHeader className="flex flex-row justify-between gap-2 flex-wrap">
<div className="flex flex-col max-w-full gap-2 content-center">
<CardTitle className="break-words">{props.title}</CardTitle>
<CardTitle className="break-words text-wrap">{props.title}</CardTitle>
<h2 className="break-words">{props.summary}</h2>
</div>

Expand All @@ -115,8 +115,8 @@ export default function ProposalCard(props: ProposalCardProps) {
/>
</CardHeader>

<CardContent className="my-3">
<CardDescription className="py-4 break-words">
<CardContent className="flex gap-6 flex-col">
<CardDescription className="break-words">
{props.description}
</CardDescription>

Expand All @@ -128,7 +128,7 @@ export default function ProposalCard(props: ProposalCardProps) {
/>
</CardContent>

<CardFooter className="flex flex-row justify-between">
<CardFooter className="flex flex-row justify-between gap-4">
<Badge variant={props.status === 'open' ? 'success' : 'destructive'}>
{props.status.toUpperCase()}
</Badge>
Expand Down
2 changes: 1 addition & 1 deletion src/features/voting/ProposalInterestVote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function ProposalInterestVote(props: ProposalInterestVoteProps) {
return (
<RadioGroup
aria-label="Vote"
className="flex flex-col md:flex-row md:items-center gap-2"
className="flex flex-row place-content-center gap-2"
value={`${props.vote?.value}`}
disabled={props.disabled}
onValueChange={(value: `${Vote['value']}`) =>
Expand Down

0 comments on commit a5f6558

Please sign in to comment.