Skip to content

Commit

Permalink
Virtualize
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Jan 16, 2024
1 parent 1000103 commit 0e635fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions browse/src/client/Fluent.Emoji/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ else
v@(version)
</MudSelectItem>
}
</MudSelect>
</MudSelect>

@foreach (var (group, emojiMap) in GroupedEmoji)
{
<Virtualize Items="@GroupedEmoji" Context="kvp">
@{
var (group, emojiMap) = kvp;
}
<MudText Typo="Typo.h5" Class="pb-4">@group (@(emojiMap.Count))</MudText>
<MudDivider DividerType="DividerType.FullWidth" Vertical="false" Class="pb-4" />
<MudGrid Spacing="2" Justify="Justify.Center" Class="pb-4">
Expand Down Expand Up @@ -51,6 +53,6 @@ else
</MudPaper>
</MudItem>
}
</MudGrid>
}
</MudGrid>
</Virtualize>
}
2 changes: 1 addition & 1 deletion browse/src/client/Fluent.Emoji/wwwroot/emoji/all.g.json

Large diffs are not rendered by default.

0 comments on commit 0e635fd

Please sign in to comment.