Skip to content

Commit

Permalink
fix: upgarde ProposalCard + small tweks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati0x committed Nov 11, 2024
1 parent 0c23363 commit dd7223c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion apps/web/components/Charts/ChartWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const ChartWrapper = ({
{
name: "Conviction",
className: "bg-primary-content h-4 w-4 rounded-full",
info: "Accumulated pool weight for a proposal, increasing over time, based on the conviction growth param.",
info: "Accumulated pool weight for a proposal, increasing over time, based on the conviction growth.",
},
{
name: "Threshold",
Expand Down
40 changes: 20 additions & 20 deletions apps/web/components/ProposalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,32 +154,32 @@ export function ProposalCard({
const proposalCardContent = (
<>
<div
className={`flex gap-3 justify-between py-3 flex-wrap ${isAllocationView ? `section-layout ${isNewProposal ? "shadow-2xl" : ""}` : ""}`}
className={`flex gap-3 justify-between flex-wrap ${isAllocationView ? `section-layout ${isNewProposal ? "shadow-2xl" : ""}` : ""}`}
>
<div className="flex flex-col sm:flex-row w-full">
<div className="flex flex-col sm:flex-row w-full justify-between gap-2">
{/* icon title and id */}
<div className="flex gap-6 flex-1">
<div className="hidden sm:block">
<header className="flex justify-between items-start gap-2 ">
<div className="hidden lg:block">
<Hashicon value={id} size={45} />
</div>
<div>
<h4 className="sm:max-w-md lg:max-w-lg">
<Skeleton isLoading={!metadata} className="sm:w-96 h-5">
<TooltipIfOverflow className="first-letter:uppercase">
{metadata?.title}
</TooltipIfOverflow>
</Skeleton>
</h4>
<div className="flex items-baseline gap-3">
<h6 className="text-sm">ID {proposalNumber}</h6>
<p className="text-sm text-neutral-soft-content">
{prettyTimestamp(proposalData.createdAt ?? 0)}
</p>
<div className="flex w-full items-start flex-col gap-1">
<Skeleton isLoading={!metadata}>
<h3 className="flex items-start w-fit max-w-full">
<TooltipIfOverflow>{metadata?.title}</TooltipIfOverflow>
</h3>
</Skeleton>
<div className="flex justify-between items-center">
<div className="flex items-baseline gap-3">
<h6 className="text-sm">ID {proposalNumber}</h6>
<p className="text-sm text-neutral-soft-content">
{prettyTimestamp(proposalData.createdAt ?? 0)}
</p>
</div>
</div>
</div>
</div>
</header>
{/* amount requested and proposal status */}
<div className="flex gap-6 text-neutral-soft-content">
<div className="flex gap-6 text-neutral-soft-content justify-end">
{!isSignalingType && poolToken && (
<div className="flex items-center gap-1 justify-self-end">
<p>Requested amount: </p>
Expand Down Expand Up @@ -299,7 +299,7 @@ export function ProposalCard({
</div>
</div>
{!isAllocationView && stakedFilter && stakedFilter?.value > 0 && (
<p className="flex items-baseline text-xs">
<p className="flex items-baseline text-xs mt-2">
Your support: {poolWeightAllocatedInProposal}%
</p>
)}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/components/Proposals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ export function Proposals({
}
tooltip="Make changes in proposals support first"
>
Submit your support!
Submit your support
</Button>
</div>
: <div>
Expand Down
2 changes: 1 addition & 1 deletion funding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"opRetro": {
"projectId": "0xf87dc66be181007e6d394553b4498ef833f7a53059d86e6ae399b4ca8db61543"
"projectId": "0xdde46a1ddca8effe3f50996d8a674fc0ed79d2c7e9dab310cba65529f97dc2d6"
}
}

0 comments on commit dd7223c

Please sign in to comment.