Skip to content

Commit

Permalink
Force log level select position to be below (#3406)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Ratzman <adamratzman@microsoft.com>
  • Loading branch information
adamint and Adam Ratzman authored Apr 5, 2024
1 parent 5d631c6 commit 5a6856d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Aspire.Dashboard/Components/Pages/StructuredLogs.razor
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<FluentDivider Role="DividerRole.Presentation" Orientation="Orientation.Vertical" />
<FluentSelect TOption="SelectViewModel<LogLevel?>"
Items="@_logLevels"
Position="SelectPosition.Below"
OptionText="@(c => c.Name)"
@bind-SelectedOption="PageViewModel.SelectedLogLevel"
@bind-SelectedOption:after="HandleSelectedLogLevelChangedAsync"
Expand Down Expand Up @@ -64,7 +65,7 @@
SelectedValue="@SelectedLogEntry">
<DetailsTitleTemplate>
@{
var eventName = OtlpHelpers.GetValue(SelectedLogEntry!.LogEntry.Attributes, "event.name")
var eventName = OtlpHelpers.GetValue(SelectedLogEntry!.LogEntry.Attributes, "event.name")
?? OtlpHelpers.GetValue(SelectedLogEntry.LogEntry.Attributes, "logrecord.event.name")
?? Loc[nameof(Dashboard.Resources.StructuredLogs.StructuredLogsEntryDetails)];
}
Expand Down

0 comments on commit 5a6856d

Please sign in to comment.