Skip to content

Commit 992f351

Browse files
committed
Merge branch 'dev'
2 parents 1ec4cb4 + 41b3d94 commit 992f351

File tree

2 files changed

+28
-23
lines changed

2 files changed

+28
-23
lines changed

frontend/src/App.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ export default function App() {
3434
{/* Treasury Stats Bar */}
3535
<TreasuryStats stats={stats} health={health} />
3636

37-
{/* Recent Transactions */}
38-
<TxFeed transactions={transactions} />
37+
{/* TxFeed + Feedback side by side */}
38+
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
39+
<TxFeed transactions={transactions} />
40+
<FeedbackSection />
41+
</div>
3942

4043
{/* Trust Indicators */}
4144
<TrustIndicators stats={stats} />
42-
43-
{/* Feedback */}
44-
<FeedbackSection />
4545
</main>
4646

4747
<Footer />

frontend/src/components/FeedbackSection.tsx

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,15 @@ export function FeedbackSection() {
5454
}
5555

5656
return (
57-
<section>
58-
<h2 className="text-xl font-bold mb-4">Feedback</h2>
57+
<div className="bg-card-bg border border-card-border rounded-[12px] h-full flex flex-col">
58+
{/* Header */}
59+
<div className="px-4 py-3 border-b border-card-border">
60+
<span className="text-sm font-semibold text-text-primary">Feedback</span>
61+
</div>
5962

6063
{/* Submit form */}
61-
<form onSubmit={handleSubmit} className="mb-6">
62-
<div className="flex gap-3">
64+
<form onSubmit={handleSubmit} className="px-4 py-3 border-b border-card-border">
65+
<div className="flex gap-2">
6366
<textarea
6467
value={content}
6568
onChange={(e) => setContent(e.target.value)}
@@ -83,25 +86,27 @@ export function FeedbackSection() {
8386
</form>
8487

8588
{/* Feedback list */}
86-
{loading ? (
87-
<p className="text-text-muted text-sm">Loading...</p>
88-
) : feedback.length === 0 ? (
89-
<p className="text-text-muted text-sm">No feedback yet. Be the first!</p>
90-
) : (
91-
<div className="space-y-2">
92-
{feedback.map((fb) => (
89+
<div className="flex-1 overflow-y-auto">
90+
{loading ? (
91+
<p className="text-text-muted text-sm py-8 text-center">Loading...</p>
92+
) : feedback.length === 0 ? (
93+
<p className="text-text-muted text-sm py-8 text-center">
94+
No feedback yet. Be the first!
95+
</p>
96+
) : (
97+
feedback.map((fb) => (
9398
<div
9499
key={fb.id}
95-
className="flex items-start gap-3 bg-card-bg border border-card-border rounded-sm p-3"
100+
className="px-4 py-3 border-b border-card-border last:border-0 flex items-start gap-3"
96101
>
97102
<button
98103
onClick={() => handleVote(fb.id)}
99104
disabled={votedIds.has(fb.id)}
100-
className={`flex flex-col items-center min-w-[40px] pt-0.5 transition-colors ${
105+
className={`flex flex-col items-center min-w-[32px] pt-0.5 transition-colors ${
101106
votedIds.has(fb.id) ? 'text-primary' : 'text-text-muted hover:text-primary'
102107
}`}
103108
>
104-
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
109+
<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor">
105110
<path d="M8 4L3 10h10L8 4z" />
106111
</svg>
107112
<span className="text-xs font-medium">{fb.votes}</span>
@@ -113,9 +118,9 @@ export function FeedbackSection() {
113118
</p>
114119
</div>
115120
</div>
116-
))}
117-
</div>
118-
)}
119-
</section>
121+
))
122+
)}
123+
</div>
124+
</div>
120125
);
121126
}

0 commit comments

Comments
 (0)