Skip to content

Commit 0ab063d

Browse files
committed
fix: UI fixup
Signed-off-by: Ilya Buziuk <ibuziuk@redhat.com>
1 parent f25019d commit 0ab063d

1 file changed

Lines changed: 23 additions & 19 deletions

File tree

src/components/wizard/WizardProgressBar.jsx

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,6 @@ export default function WizardProgressBar() {
1414
return (
1515
<div className="mb-8">
1616
<div className="flex items-center mb-2 relative" style={{ minHeight: '80px' }}>
17-
{/* Connecting lines - positioned absolutely behind circles */}
18-
<div className="absolute left-0 right-0 flex items-center justify-between" style={{ top: '1.125rem', height: '4px', paddingLeft: '1.25rem', paddingRight: '1.25rem' }}>
19-
{WIZARD_STEPS.map((step, index) => {
20-
if (index === WIZARD_STEPS.length - 1) return null
21-
const isCompleted = state.completedSteps.includes(index)
22-
return (
23-
<div
24-
key={`line-${step.id}`}
25-
className={`h-1 ${
26-
isCompleted ? 'bg-blue-600' : 'bg-gray-300'
27-
}`}
28-
style={{ flex: '1 1 0' }}
29-
/>
30-
)
31-
})}
32-
</div>
33-
3417
{/* Step circles */}
3518
<div className="flex items-center justify-between w-full relative z-10">
3619
{WIZARD_STEPS.map((step, index) => {
@@ -39,9 +22,30 @@ export default function WizardProgressBar() {
3922
const isClickable = isCompleted || isCurrent
4023

4124
return (
42-
<div key={step.id} className="flex flex-col items-center">
25+
<div key={step.id} className="flex flex-col items-center relative flex-1">
26+
{/* Connecting line - extends from center of this circle to center of next circle */}
27+
{index < WIZARD_STEPS.length - 1 && (
28+
<div
29+
className="absolute pointer-events-none"
30+
style={{
31+
left: '50%',
32+
top: '1.25rem',
33+
right: index === WIZARD_STEPS.length - 2 ? 'calc(-50% - 1.25rem)' : 'calc(-50% - 1.25rem)',
34+
height: '1px',
35+
transform: 'translateY(-0.5px)',
36+
marginLeft: '1.25rem',
37+
zIndex: 0
38+
}}
39+
>
40+
<div
41+
className={`h-1 w-full ${
42+
isCompleted ? 'bg-blue-600' : 'bg-gray-300'
43+
}`}
44+
/>
45+
</div>
46+
)}
4347
<div
44-
className={`flex items-center justify-center w-10 h-10 rounded-full text-sm font-medium
48+
className={`flex items-center justify-center w-10 h-10 rounded-full text-sm font-medium relative z-10
4549
${isCurrent
4650
? 'bg-blue-600 text-white ring-4 ring-blue-100'
4751
: isCompleted

0 commit comments

Comments
 (0)