@@ -23,6 +23,7 @@ import { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
2323import { IWorkflowStepsStrings } from '../../../model' ;
2424import { toCamel } from '../../../utils/toCamel' ;
2525
26+ // TODO: Hook this up with real passages
2627const mockPassages = [
2728 'Passage 1' ,
2829 'Passage 2' ,
@@ -118,6 +119,7 @@ export default function MobileWorkflowSteps() {
118119 width : '100%' ,
119120 } }
120121 >
122+ { /* Passage dropdown */ }
121123 < Box ref = { dropdownRef } sx = { { flexShrink : 0 , mr : 1 } } >
122124 < Button
123125 size = "small"
@@ -133,6 +135,7 @@ export default function MobileWorkflowSteps() {
133135 open = { Boolean ( passageMenuAnchor ) }
134136 onClose = { ( ) => setPassageMenuAnchor ( null ) }
135137 >
138+ { /* TODO: Hook this up with real passages */ }
136139 { mockPassages . map ( ( p ) => (
137140 < MenuItem
138141 key = { p }
@@ -147,6 +150,7 @@ export default function MobileWorkflowSteps() {
147150 ) ) }
148151 </ Menu >
149152 </ Box >
153+ { /* Workflow step parallelograms */ }
150154 < Box
151155 sx = { {
152156 flex : 1 ,
@@ -178,7 +182,7 @@ export default function MobileWorkflowSteps() {
178182 sx = { {
179183 flex : '0 0 80px' ,
180184 height : 30 ,
181- mr : - 0.25 ,
185+ mr : - 0.25 , // Overlap adjacent parallelograms so their edges meet cleanly
182186 backgroundColor : isCurrent
183187 ? theme . palette . grey [ 700 ]
184188 : stepComplete ( step . id )
@@ -191,6 +195,7 @@ export default function MobileWorkflowSteps() {
191195 />
192196 ) ;
193197 } ) }
198+ { /* Spacer to mirror the dropdown width so mx:auto centers the parallelograms */ }
194199 < Box sx = { { flexShrink : 0 , width : dropdownWidth } } />
195200 </ Box >
196201 </ Box >
0 commit comments