Fixed input alignment for variable page

This commit is contained in:
Marcel Baumgartner 2024-02-11 17:57:16 +01:00
parent 07c09e48e3
commit 970bca7121

View file

@ -42,21 +42,23 @@
<div class="form-text fs-5 mb-2 mt-0"> <div class="form-text fs-5 mb-2 mt-0">
@imageVariable.Description @imageVariable.Description
</div> </div>
@if (imageVariable.AllowUserToEdit) <div class="mt-auto">
{ @if (imageVariable.AllowUserToEdit)
<div class="input-group"> {
<input @bind="variable.Value" type="text" class="form-control" placeholder="@(imageVariable.DefaultValue)"/> <div class="input-group">
<WButton OnClick="() => UpdateVariable(variable)" CssClasses="btn btn-icon btn-primary"> <input @bind="variable.Value" type="text" class="form-control" placeholder="@(imageVariable.DefaultValue)"/>
<i class="bx bx-sm bx-save"></i> <WButton OnClick="() => UpdateVariable(variable)" CssClasses="btn btn-icon btn-primary">
</WButton> <i class="bx bx-sm bx-save"></i>
</div> </WButton>
} </div>
else }
{ else
<div class="input-group"> {
<input value="@variable.Value" type="text" class="form-control disabled" disabled=""/> <div class="input-group">
</div> <input value="@variable.Value" type="text" class="form-control disabled" disabled=""/>
} </div>
}
</div>
</div> </div>
</div> </div>
} }