Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some issues #137

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dapp/src/components/page/governance/ProposalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ProposalCard: React.FC<ProposalCardView> = ({
<div
className="w-full px-2 sm:px-4 md:pl-8 py-2 sm:py-3 md:py-4.5 bg-white border border-zinc-300 rounded-lg sm:rounded-xl cursor-pointer hover:border-lime hover:bg-zinc-500"
onClick={() =>
navigate(`/proposal?id=${proposalNumber}&&name=${projectName}`)
navigate(`/proposal?id=${proposalNumber}&name=${projectName}`)
}
>
<div className="w-full flex justify-between items-center">
Expand Down
30 changes: 17 additions & 13 deletions dapp/src/components/page/proposal/ExecuteProposalModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,22 +139,26 @@ const VotersModal: React.FC<VotersModalProps> = ({
View in Stellar Lab
</span>
</a>
<div
className={`transition-all duration-300 "max-h-24" overflow-hidden flex flex-col bg-zinc-100 border border-zinc-400 rounded-xl`}
>
<div className="jsonview-body w-full">
<div className="max-h-40 md:max-h-96 overflow-y-auto px-1 sm:px-3 md:px-5 py-2 sm:py-3 md:py-4">
<JsonView src={content} theme="vscode" />
{voteResultAndXdr.xdr && (
<div
className={`transition-all duration-300 "max-h-24" overflow-hidden flex flex-col bg-zinc-100 border border-zinc-400 rounded-xl`}
>
<div className="jsonview-body w-full">
<div className="max-h-40 md:max-h-96 overflow-y-auto px-1 sm:px-3 md:px-5 py-2 sm:py-3 md:py-4">
<JsonView src={content} theme="vscode" />
</div>
</div>
</div>
</div>
)}
</div>
<button
className="bg-black text-white mt-4 mb-1 py-1 px-4 rounded-lg text-lg"
onClick={signAndExecute}
>
Sign
</button>
{voteResultAndXdr.xdr && (
<button
className="bg-black text-white mt-4 mb-1 py-1 px-4 rounded-lg text-lg"
onClick={signAndExecute}
>
Sign
</button>
)}
</div>
</div>
</div>
Expand Down
Loading