Skip to content
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
52 changes: 26 additions & 26 deletions src/features/builder/TransactionSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,15 @@ export function TransactionSummary() {
</div>

{/* Votes */}
<div>
<div className="flex items-center justify-between mb-2">
<h3 className="text-sm font-medium flex items-center gap-2">
<Vote className="h-4 w-4" />
Votes ({votes.length})
</h3>
</div>
<ScrollArea className="h-32">
{votes.length === 0 ? (
<p className="text-sm text-muted-foreground">No votes added</p>
) : (
{votes.length > 0 && (
<div>
<div className="flex items-center justify-between mb-2">
<h3 className="text-sm font-medium flex items-center gap-2">
<Vote className="h-4 w-4" />
Votes ({votes.length})
</h3>
</div>
<ScrollArea className="h-32">
<div className="space-y-2">
{votes.map((vote) => (
<div
Expand All @@ -200,22 +198,24 @@ export function TransactionSummary() {
</div>
))}
</div>
)}
</ScrollArea>
</div>
</ScrollArea>
</div>
)}

<Separator />

{/* Transaction Body Elements */}
{builderTxBodyElements.length > 0 && (
<div>
<div className="flex items-center justify-between mb-2">
<h3 className="text-sm font-medium flex items-center gap-2">
<Settings className="h-4 w-4" />
Transaction Body Elements ({builderTxBodyElements.length})
</h3>
</div>
<ScrollArea className="h-48">
<div>
<div className="flex items-center justify-between mb-2">
<h3 className="text-sm font-medium flex items-center gap-2">
<Settings className="h-4 w-4" />
Transaction Body Elements ({builderTxBodyElements.length})
</h3>
</div>
<ScrollArea className="h-48">
{builderTxBodyElements.length === 0 ? (
<p className="text-sm text-muted-foreground">No transaction body elements added</p>
) : (
<div className="space-y-3">
{groupedTxBodyElements.inputs.length > 0 && (
<div>
Expand Down Expand Up @@ -310,9 +310,9 @@ export function TransactionSummary() {
</div>
))}
</div>
</ScrollArea>
</div>
)}
)}
</ScrollArea>
</div>

<Separator />

Expand Down
6 changes: 4 additions & 2 deletions src/features/builder/TxBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ export function TxBuilder() {
</div>

{/* Right Panel - Transaction Summary + Actions */}
<div className="flex flex-col space-y-4">
<TransactionSummary />
<div className="flex flex-col space-y-4 lg:min-h-0">
<div className="flex-1 min-h-0 overflow-hidden">
<TransactionSummary />
</div>
<TransactionActions />
</div>
</div>
Expand Down
Loading