diff --git a/src/lib/components/lines-and-dots/svg/text.svelte b/src/lib/components/lines-and-dots/svg/text.svelte
index 7b1377fda..157d9f1ae 100644
--- a/src/lib/components/lines-and-dots/svg/text.svelte
+++ b/src/lib/components/lines-and-dots/svg/text.svelte
@@ -53,7 +53,7 @@
name={icon}
x={x - offset}
y={y - 8}
- class={dark ? 'text-black' : 'text-white'}
+ class={dark ? 'text-black' : !backdrop ? 'text-primary' : 'text-white'}
/>
{/if}
{/if}
diff --git a/src/lib/components/lines-and-dots/svg/timeline-graph-row.svelte b/src/lib/components/lines-and-dots/svg/timeline-graph-row.svelte
index 259facd58..e33ffe4ad 100644
--- a/src/lib/components/lines-and-dots/svg/timeline-graph-row.svelte
+++ b/src/lib/components/lines-and-dots/svg/timeline-graph-row.svelte
@@ -9,6 +9,7 @@
import {
CategoryIcon,
+ textBackdropOffset,
textBackdropOffsetWithIcon,
TimelineConfig,
timelineTextPosition,
@@ -30,11 +31,13 @@
const { height, gutter, radius } = TimelineConfig;
let textWidth = 0;
+ let retryAttemptTextWidth = 0;
$: timelineWidth = canvasWidth - 2 * gutter;
$: active = !activeGroups.length || activeGroups.includes(group.id);
$: ({ pendingActivity } = group);
- $: hasPendingActivity = isPendingActivity(pendingActivity);
+ $: showRetryAttempts =
+ isPendingActivity(pendingActivity) && pendingActivity.attempt > 1;
const getDistancePointsAndPositions = (
endTime: string | Date,
@@ -117,7 +120,14 @@
{/if}
{#if showText}
{/if}
- {#if hasPendingActivity && pendingActivity.attempt > 1}
+ {#if showRetryAttempts}
{translate('workflows.retry')}
{pendingActivity.attempt} / {pendingActivity.maximumAttempts || '∞'}