Skip to content

Commit

Permalink
fix weird rendering of mudtextfield in profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Jul 11, 2024
1 parent 1728289 commit c95012e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/web/Jordnaer/Features/Profile/UserProfileCard.razor
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,12 @@

@if (Profile.DateOfBirth is not null)
{
<MudTextFieldExtended Label="Alder" ReadOnly T="string">
<AdornmentStart>
<MudIcon Color="Color.Default" Icon="@Icons.Material.Filled.Cake" Class="mr-2"/>
<MudText Color="Color.Default">@Profile.Age år</MudText>
</AdornmentStart>
<AdornmentEnd>
<MudText Color="Color.Default">@Profile.DateOfBirth.Value.ToString("d")</MudText>
</AdornmentEnd>
</MudTextFieldExtended>
<MudTextField title="@Profile.DateOfBirth.Value.ToString("d")"
AdornmentIcon="@Icons.Material.Filled.Cake"
Adornment="Adornment.Start"
Label="Alder"
ReadOnly T="string"
Value="@($"{Profile.Age} år")" />
}

@if (Profile.Description is not null)
Expand Down

0 comments on commit c95012e

Please sign in to comment.