Skip to content

Commit 0c21362

Browse files
author
Alexandros Nikolopoulos
committed
Alignment of buttons
1 parent 6045f91 commit 0c21362

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tilework.ui/Components/Forms/ConditionForm.razor

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
@namespace Tilework.Ui.Components.Forms
77

8+
<style>
9+
.condition-prefix {
10+
display:inline-block;
11+
width:2ch;
12+
text-align:center;
13+
}
14+
</style>
815

916
<MudStack Spacing="1" Class="ma-1" StretchItems="StretchItems.Start" Row>
1017
<MudText Typo="Typo.subtitle2">@Condition.Type.GetDescription()</MudText>
@@ -16,14 +23,15 @@
1623
{
1724
var index = i;
1825
<MudStack AlignItems="AlignItems.Center" StretchItems="StretchItems.Middle" Row>
19-
<MudText Typo="Typo.subtitle2" Style="display:inline-block; width:2ch; text-align:center;"><strong>@(index == 0 ? "=" : "or")</strong></MudText>
26+
<MudText Typo="Typo.subtitle2" Class="condition-prefix"><strong>@(index == 0 ? "=" : "or")</strong></MudText>
2027
<MudTextField @bind-Value="Condition.Values[index]" Variant="Variant.Outlined" Required="true" Margin="Margin.Dense" />
2128
<MudIconButton Icon="@Icons.Material.Filled.Delete" Variant="Variant.Text" Size="Size.Small" OnClick="@(() => RemoveValue(index))" />
2229
</MudStack>
2330
}
2431
<MudStack AlignItems="AlignItems.Start" Row>
32+
<MudText Typo="Typo.subtitle2" Class="condition-prefix"></MudText>
2533
<MudButton Size="Size.Small" Variant="Variant.Text" Color="Color.Primary" StartIcon="@Icons.Material.Filled.Add" OnClick="AddValue">
26-
Add OR condition value
34+
Add
2735
</MudButton>
2836
</MudStack>
2937
</MudStack>

0 commit comments

Comments
 (0)