From f035dc26b8baf5c1413b1d4a979ad2f4e55c7604 Mon Sep 17 00:00:00 2001 From: Vincent Baaij Date: Mon, 11 Sep 2023 22:32:28 +0200 Subject: [PATCH] Dialog changes --- OTLPView/Components/FilterDialog.razor | 24 +++++++++++++----------- OTLPView/Pages/LogViewer.razor.cs | 11 +++-------- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/OTLPView/Components/FilterDialog.razor b/OTLPView/Components/FilterDialog.razor index 6840560..3d33cff 100644 --- a/OTLPView/Components/FilterDialog.razor +++ b/OTLPView/Components/FilterDialog.razor @@ -1,17 +1,19 @@ @using Microsoft.Fast.Components.FluentUI; - - + + - + - - + -Cancel -Apply Filter -@if (Content is { }) -{ - -} + + Cancel + Apply Filter + @if (Content is { }) + { + + } + + diff --git a/OTLPView/Pages/LogViewer.razor.cs b/OTLPView/Pages/LogViewer.razor.cs index 40ac4ce..8f451fa 100644 --- a/OTLPView/Pages/LogViewer.razor.cs +++ b/OTLPView/Pages/LogViewer.razor.cs @@ -116,18 +116,13 @@ private void OpenFilter(LogFilter entry) Fluent.DialogParameters parameters = new() { OnDialogResult = DialogService.CreateDialogCallback(this, HandleDialog), - ShowTitle = false, - ShowDismiss = false, - - Width = "600px", - Height = "100px", + Title = "Filter", + Alignment = Fluent.HorizontalAlignment.Right, Content = entry, - TrapFocus = true, - Modal = true, PrimaryAction = null, SecondaryAction = null, }; - DialogService.ShowDialog(parameters); + DialogService.ShowPanel(parameters); } private async Task HandleDialog(Fluent.DialogResult result)