17 references to Compact
Aspire.Dashboard (3)
Components\Dialogs\SettingsDialog.razor.cs (1)
92new(ResourceListDensity.Compact, new Icons.Regular.Size20.AppsList(), Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogResourceListDensityCompact)]),
Components\Layout\ResourcesLayout.razor.cs (1)
1848private bool IsCompact => ViewPreferences.Density == ResourceListDensity.Compact;
Model\DashboardViewPreferences.cs (1)
71private const ResourceListDensity DefaultDensity = ResourceListDensity.Compact;
Aspire.Dashboard.Components.Tests (14)
Layout\ResourceRowAvailabilityTests.cs (1)
87await cut.InvokeAsync(() => Services.GetRequiredService<DashboardViewPreferences>().SetDensityAsync(ResourceListDensity.Compact));
Layout\ResourcesLayoutTests.cs (12)
461[InlineData(ResourceListDensity.Compact)] 506var compact = density is ResourceListDensity.Compact; 1258await cut.InvokeAsync(() => preferences.SetDensityAsync(ResourceListDensity.Compact)); 1645[InlineData(CommandViewModelState.Enabled, true, false, ResourceListDensity.Compact)] 1647[InlineData(CommandViewModelState.Enabled, true, true, ResourceListDensity.Compact)] 1649[InlineData(null, false, false, ResourceListDensity.Compact)] 1816[InlineData(true, ResourceListDensity.Compact)] 1847var spacer = density == ResourceListDensity.Compact ? rail[^1] : rail[0]; 2511[InlineData("Persistent", ResourceListDensity.Compact, "Container (persistent)")] 2513[InlineData("Session", ResourceListDensity.Compact, "Container")] 2515[InlineData(null, ResourceListDensity.Compact, "Container")] 2531Assert.Equal(density is ResourceListDensity.Compact ? [expectedType] : [],
Model\DashboardViewPreferencesTests.cs (1)
104Assert.Equal(ResourceListDensity.Compact, preferences.Density);