Skip to content

Commit 8934378

Browse files
committed
fix: ui alignment — title row spacing, progress bar self-center, circular progress flex-shrink-0
1 parent dd02de2 commit 8934378

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/pages/Home.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,15 +401,15 @@ export default function Home() {
401401
<Icon size={22} style={{ color: meta.color }} />
402402
</div>
403403
<div className="flex-1 min-w-0">
404-
<div className="flex items-center justify-between mb-1">
404+
<div className="flex items-center gap-2 mb-1">
405405
<h3
406-
className="text-base font-semibold"
406+
className="text-base font-semibold truncate flex-1 min-w-0"
407407
style={{ color: 'var(--text-primary)' }}
408408
>
409409
{domain.number}: {domain.title}
410410
</h3>
411411
{isDone && (
412-
<CheckCircle2 size={18} style={{ color: 'var(--success)' }} />
412+
<CheckCircle2 size={18} className="flex-shrink-0" style={{ color: 'var(--success)' }} />
413413
)}
414414
</div>
415415
<p
@@ -420,7 +420,7 @@ export default function Home() {
420420
</p>
421421
<div className="flex items-center gap-3">
422422
<div
423-
className="flex-1 h-2 rounded-full overflow-hidden"
423+
className="flex-1 h-2 rounded-full overflow-hidden self-center"
424424
style={{ backgroundColor: 'var(--surface-elevated)' }}
425425
>
426426
<div
@@ -431,7 +431,9 @@ export default function Home() {
431431
}}
432432
/>
433433
</div>
434-
<CircularProgress percentage={pct} color={meta.color} size={36} strokeWidth={3} />
434+
<div className="flex-shrink-0 self-center">
435+
<CircularProgress percentage={pct} color={meta.color} size={36} strokeWidth={3} />
436+
</div>
435437
</div>
436438
</div>
437439
</div>

0 commit comments

Comments
 (0)