Skip to content

Commit

Permalink
Add a hover effect on the events list rows (fix #27)
Browse files Browse the repository at this point in the history
  • Loading branch information
verdie-g committed May 5, 2024
1 parent b8a313b commit 875472b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DotnetEventViewer/DotnetEventViewer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.4" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.4" PrivateAssets="all" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.6.1" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.6.1" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.7.2" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.7.2" />
</ItemGroup>

</Project>
5 changes: 3 additions & 2 deletions DotnetEventViewer/Pages/EventsList.razor
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
ItemKey="@(e => e.Index)"
Virtualize="true"
ResizableColumns="true"
OnRowFocus="OnRowFocus"
OnRowClick="OnRowClick"
ShowHover="true"
ItemSize="32">
<ChildContent>
@foreach (var f in _columnFields!)
Expand All @@ -46,7 +47,7 @@
_columnFields = queryResult.ColumnFields;
}

private async Task OnRowFocus(FluentDataGridRow<Event> eventRow)
private async Task OnRowClick(FluentDataGridRow<Event> eventRow)
{
var evt = eventRow.Item!;
await DialogService.ShowPanelAsync<EventDialogContent>(evt, new DialogParameters<Event>
Expand Down

0 comments on commit 875472b

Please sign in to comment.