Skip to content

Commit

Permalink
show units on struct/array parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
duranb committed Sep 26, 2023
1 parent 68a1f73 commit 043bdd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/parameters/ParameterRecSeries.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import ParameterBaseRightAdornments from './ParameterBaseRightAdornments.svelte';
import ParameterName from './ParameterName.svelte';
import ParameterRec from './ParameterRec.svelte';
import ParameterUnits from './ParameterUnits.svelte';
export let disabled: boolean = false;
export let expanded: boolean = false;
Expand Down Expand Up @@ -85,7 +86,8 @@
<ParameterName {formParameter} />
</div>
<div class="series-right" slot="right">
<CssGrid gap="3px" columns="auto auto auto" class="parameter-rec-series-css-grid">
<CssGrid gap="3px" columns="auto auto auto auto" class="parameter-rec-series-css-grid">
<ParameterUnits unit={formParameter.unit} />
<button
class="st-button icon"
disabled={subFormParameters?.length === 0 || disabled}
Expand Down
3 changes: 3 additions & 0 deletions src/components/parameters/ParameterRecStruct.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import ParameterBaseRightAdornments from './ParameterBaseRightAdornments.svelte';
import ParameterName from './ParameterName.svelte';
import ParameterRec from './ParameterRec.svelte';
import ParameterUnits from './ParameterUnits.svelte';
export let disabled: boolean = false;
export let expanded: boolean = false;
Expand Down Expand Up @@ -69,6 +70,7 @@
<ParameterName {formParameter} />
</div>
<div class="right" slot="right">
<ParameterUnits unit={formParameter.unit} />
<ParameterBaseRightAdornments
{disabled}
hidden={hideRightAdornments}
Expand Down Expand Up @@ -148,6 +150,7 @@
}
.right {
display: inline-flex;
margin-right: 5px;
}
</style>

0 comments on commit 043bdd1

Please sign in to comment.