17 references to ViewportInformation
Aspire.Dashboard (2)
Components\Layout\MainLayout.razor.cs (2)
271
if (
ViewportInformation
.IsDesktop && _isNavMenuOpen)
278
private string GetDefaultReturnFocusElementId(string desktopButtonId) =>
ViewportInformation
.IsDesktop ? desktopButtonId : NavigationButtonId;
Aspire.Dashboard.Components.Tests (15)
Layout\MainLayoutTests.cs (15)
70
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
107
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
143
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
188
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
219
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: isDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false));
260
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: isDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false));
301
component => component.
ViewportInformation
,
343
component => component.
ViewportInformation
,
391
builder.Add(component => component.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
573
builder.Add(component => component.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
732
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
786
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
851
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
902
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
999
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));