Skip to content

Commit 88b40f3

Browse files
authored
Fix/stextfield style (#785)
1 parent 499ff5a commit 88b40f3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Masa.Stack.Components/Shared/IntegrationComponents/SAutoComplete.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class SAutoComplete<TItem, TItemValue, TValue> : MAutocomplete<TItem, TIt
1313

1414
[Parameter]
1515
public bool AutoLabel { get; set; } = true;
16-
16+
1717
private RenderFragment? _requiredLabelContent;
1818
private string? _fieldName;
1919

@@ -40,23 +40,23 @@ protected override void OnParametersSet()
4040
{
4141
if (Large)
4242
{
43-
MinHeight = 56;
43+
Height = 56;
4444
if (Class.Contains("m-input--dense-56") is false)
4545
{
4646
Class += " m-input--dense-56";
4747
}
4848
}
4949
else if (Medium)
5050
{
51-
MinHeight = 48;
51+
Height = 48;
5252
if (Class.Contains("m-input--dense-48") is false)
5353
{
5454
Class += " m-input--dense-48";
5555
}
5656
}
5757
else if (Small)
5858
{
59-
MinHeight = 40;
59+
Height = 40;
6060
if (Class.Contains("m-input--dense-40") is false)
6161
{
6262
Class += " m-input--dense-40";

src/Masa.Stack.Components/Shared/IntegrationComponents/STextField.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected override void OnParametersSet()
9090
builder.AddAttribute(3, "Text", InternalAction.Text);
9191
builder.AddAttribute(4, "Disabled", InternalAction.Disabled);
9292
builder.AddAttribute(5, "Color", InternalAction.Color);
93-
builder.AddAttribute(6, "Style", "border:none;border-radius: 0 8px 8px 0 !important;height:100%;");
93+
builder.AddAttribute(6, "Style", $"border:none;border-radius: 0 8px 8px 0 !important;height:{Height}px;margin-right: -12px;");
9494
builder.AddAttribute(7, "DisableLoading", InternalAction.DisableLoding);
9595
builder.AddAttribute(8, "OnClick", EventCallback.Factory.Create<MouseEventArgs>(this, InternalAction.OnClick));
9696
builder.AddAttribute(9, "ChildContent", (RenderFragment)(cb => cb.AddContent(9, InternalAction.Content)));

0 commit comments

Comments
 (0)