-
${formatTime(step.time)}
-
${formatAbsoluteTime(step.time)}
+ return eventFlow.map((step, index) => {
+ // Determine alignment based on actor type
+ const isRelay = step.actor.startsWith('Relay (');
+ const alignmentClass = isRelay ? 'align-right' : 'align-left';
+ const alignmentStyle = isRelay
+ ? 'width: 60%; margin-left: auto; margin-right: 0;'
+ : 'width: 60%; margin-left: 0; margin-right: auto;';
+
+ return `
+
+
+
${formatTime(step.time)}
+
${formatAbsoluteTime(step.time)}
+
+
${step.actor}
+
${step.action}
+
${step.size} bytes
-
${step.actor}
-
${step.action}
-
${step.size} bytes
-
- `).join('');
+ `;
+ }).join('');
}
// Format absolute time (HH:MM:SS)