Skip to content

Commit

Permalink
(#57) fix #259 but only by frontend side
Browse files Browse the repository at this point in the history
  • Loading branch information
an2508374 committed Jun 2, 2024
1 parent 8bd2228 commit 128d60e
Showing 1 changed file with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,20 @@

@foreach (var friend in friends)
{
<RadzenCard Class="rz-my-3 rz-mx-auto" Style="max-width: 420px">
<RadzenStack Orientation="Orientation.Horizontal" JustifyContent="JustifyContent.Start" Gap="1rem" Class="rz-p-4">
<RadzenImage Path=@GetImage(friend.FriendId) Style="width: 100px; height: 100px; object-fit: cover; border-radius: 50%;" />
<RadzenStack Gap="0">
<RadzenText TextStyle="TextStyle.Overline" class="rz-display-flex rz-mt-2 rz-my-0">Friend</RadzenText>
<RadzenText TextStyle="TextStyle.Body1"><b>@($"{friend.StudentDetails?.FirstName} {friend.StudentDetails?.LastName}")</b></RadzenText>
<RadzenCheckBox Value="@IsFriendSelected(friend.FriendId)"
Change="@((bool value) => SetFriendSelected(friend.FriendId, value))" />
@if (friend.StudentDetails != null)
{
<RadzenCard Class="rz-my-3 rz-mx-auto" Style="max-width: 420px">
<RadzenStack Orientation="Orientation.Horizontal" JustifyContent="JustifyContent.Start" Gap="1rem" Class="rz-p-4">
<RadzenImage Path=@GetImage(friend.FriendId) Style="width: 100px; height: 100px; object-fit: cover; border-radius: 50%;" />
<RadzenStack Gap="0">
<RadzenText TextStyle="TextStyle.Overline" class="rz-display-flex rz-mt-2 rz-my-0">Friend</RadzenText>
<RadzenText TextStyle="TextStyle.Body1"><b>@($"{friend.StudentDetails?.FirstName} {friend.StudentDetails?.LastName}")</b></RadzenText>
<RadzenCheckBox Value="@IsFriendSelected(friend.FriendId)"
Change="@((bool value) => SetFriendSelected(friend.FriendId, value))" />
</RadzenStack>
</RadzenStack>
</RadzenStack>
</RadzenCard>
</RadzenCard>
}
}
</div>

Expand Down

0 comments on commit 128d60e

Please sign in to comment.