Skip to content

Commit 09fe47f

Browse files
authored
fix: better align the SlotProgressTimeline component (#286)
1 parent e1bf0c4 commit 09fe47f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/Ethereum/SlotProgressTimeline/SlotProgressTimeline.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ export function SlotProgressTimeline({
155155
return (
156156
<div className={clsx('w-full', className)}>
157157
{/* Desktop: Horizontal layout */}
158-
<div className="hidden h-32 md:block">
159-
<div className="flex h-full w-full items-center px-4">
158+
<div className="hidden md:block">
159+
<div className="flex w-full items-center px-4 py-2">
160160
{enrichedPhases.map((phase, index) => {
161161
const status = phase.isActive ? 'active' : phase.isCompleted ? 'completed' : 'pending';
162162
const hasConnection = index < enrichedPhases.length - 1;

src/components/Ethereum/SlotProgressTimeline/components/PhaseNode/PhaseNode.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function PhaseNode({ phase, status, showStats = true, onClick, className
4747
const phaseColor = getCSSVar(phase.color);
4848

4949
return (
50-
<div className={clsx('flex h-32 w-20 flex-col items-center gap-2', className)}>
50+
<div className={clsx('flex w-20 flex-col items-center justify-center gap-2', className)}>
5151
{/* Circular icon container */}
5252
<button
5353
type="button"
@@ -96,7 +96,7 @@ export function PhaseNode({ phase, status, showStats = true, onClick, className
9696
</button>
9797

9898
{/* Phase label, time, and stats */}
99-
<div className="flex min-h-16 flex-col items-center justify-start gap-0.5">
99+
<div className="flex flex-col items-center justify-start gap-0.5">
100100
<span
101101
className={clsx(
102102
'text-center font-medium transition-colors duration-300',

src/pages/ethereum/live/components/SlotViewLayout/SlotViewLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ export function SlotViewLayout({ mode }: SlotViewLayoutProps): JSX.Element {
411411
>
412412
<>
413413
<div className="hidden h-screen flex-col overflow-hidden bg-background lg:flex">
414-
<div className="shrink-0 border-b border-border bg-surface px-6 py-4">
414+
<div className="shrink-0 border-b border-border bg-surface px-6 py-2">
415415
<LiveBlockDetailsCard data={slotData.blockDetails} slotProgressPhases={slotProgressPhases} />
416416
</div>
417417

0 commit comments

Comments
 (0)