From 875472bb2e3d2c531dbd773cd5df059ea00b57dd Mon Sep 17 00:00:00 2001 From: verdie-g Date: Sun, 5 May 2024 18:47:39 -0400 Subject: [PATCH] Add a hover effect on the events list rows (fix #27) --- DotnetEventViewer/DotnetEventViewer.csproj | 4 ++-- DotnetEventViewer/Pages/EventsList.razor | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/DotnetEventViewer/DotnetEventViewer.csproj b/DotnetEventViewer/DotnetEventViewer.csproj index 9469fb8..1f7f85e 100644 --- a/DotnetEventViewer/DotnetEventViewer.csproj +++ b/DotnetEventViewer/DotnetEventViewer.csproj @@ -18,8 +18,8 @@ - - + + diff --git a/DotnetEventViewer/Pages/EventsList.razor b/DotnetEventViewer/Pages/EventsList.razor index a74d32d..41b570f 100644 --- a/DotnetEventViewer/Pages/EventsList.razor +++ b/DotnetEventViewer/Pages/EventsList.razor @@ -22,7 +22,8 @@ ItemKey="@(e => e.Index)" Virtualize="true" ResizableColumns="true" - OnRowFocus="OnRowFocus" + OnRowClick="OnRowClick" + ShowHover="true" ItemSize="32"> @foreach (var f in _columnFields!) @@ -46,7 +47,7 @@ _columnFields = queryResult.ColumnFields; } - private async Task OnRowFocus(FluentDataGridRow eventRow) + private async Task OnRowClick(FluentDataGridRow eventRow) { var evt = eventRow.Item!; await DialogService.ShowPanelAsync(evt, new DialogParameters