diff --git a/src/components/activity/ActivitySpanForm.svelte b/src/components/activity/ActivitySpanForm.svelte
index ed7fe2087e..794892ded5 100644
--- a/src/components/activity/ActivitySpanForm.svelte
+++ b/src/components/activity/ActivitySpanForm.svelte
@@ -1,15 +1,14 @@
diff --git a/src/components/parameters/ParameterBaseVariant.svelte b/src/components/parameters/ParameterBaseVariant.svelte
index 29fc9b0145..6a3ed88123 100644
--- a/src/components/parameters/ParameterBaseVariant.svelte
+++ b/src/components/parameters/ParameterBaseVariant.svelte
@@ -7,6 +7,7 @@
import { useActions, type ActionArray } from '../../utilities/useActions';
import ParameterBaseRightAdornments from './ParameterBaseRightAdornments.svelte';
import ParameterName from './ParameterName.svelte';
+ import ParameterUnits from './ParameterUnits.svelte';
export let disabled: boolean = false;
export let formParameter: FormParameter;
@@ -40,14 +41,17 @@
{/each}
- dispatch('reset', formParameter)}
- />
+
+
+
dispatch('reset', formParameter)}
+ />
+
@@ -62,4 +66,9 @@
display: flex;
margin-right: 5px;
}
+
+ .parameter-right {
+ display: inline-flex;
+ margin-left: 5px;
+ }
diff --git a/src/components/parameters/ParameterRecSeries.svelte b/src/components/parameters/ParameterRecSeries.svelte
index e841e0d8f3..dbedb68495 100644
--- a/src/components/parameters/ParameterRecSeries.svelte
+++ b/src/components/parameters/ParameterRecSeries.svelte
@@ -42,7 +42,7 @@
name: `[${i}]`,
order: i,
schema: schema.items,
- unit: formParameter.unit,
+ units: formParameter.units,
value: getArgument(value[i], schema.items).value,
valueSource: formParameter.valueSource,
};
diff --git a/src/components/parameters/ParameterRecStruct.svelte b/src/components/parameters/ParameterRecStruct.svelte
index 47f8cc06c2..7caa60791b 100644
--- a/src/components/parameters/ParameterRecStruct.svelte
+++ b/src/components/parameters/ParameterRecStruct.svelte
@@ -38,7 +38,7 @@
name: key,
order: index,
schema: schema.items[key],
- unit: formParameter.unit,
+ unit: formParameter.units?.[key],
value: value !== null ? value[key] : null,
valueSource: formParameter.valueSource,
};
diff --git a/src/components/parameters/ParameterUnits.svelte b/src/components/parameters/ParameterUnits.svelte
index 43f36a0fef..28f331244f 100644
--- a/src/components/parameters/ParameterUnits.svelte
+++ b/src/components/parameters/ParameterUnits.svelte
@@ -1,11 +1,13 @@
{#if unit}
- {unit}
+ {unit}
{/if}