17 references to Compact
Aspire.Dashboard (3)
Components\Dialogs\SettingsDialog.razor.cs (1)
92
new(ResourceListDensity.
Compact
, new Icons.Regular.Size20.AppsList(), Loc[nameof(Dashboard.Resources.Dialogs.SettingsDialogResourceListDensityCompact)]),
Components\Layout\ResourcesLayout.razor.cs (1)
1848
private bool IsCompact => ViewPreferences.Density == ResourceListDensity.
Compact
;
Model\DashboardViewPreferences.cs (1)
71
private const ResourceListDensity DefaultDensity = ResourceListDensity.
Compact
;
Aspire.Dashboard.Components.Tests (14)
Layout\ResourceRowAvailabilityTests.cs (1)
87
await cut.InvokeAsync(() => Services.GetRequiredService<DashboardViewPreferences>().SetDensityAsync(ResourceListDensity.
Compact
));
Layout\ResourcesLayoutTests.cs (12)
461
[InlineData(ResourceListDensity.
Compact
)]
506
var compact = density is ResourceListDensity.
Compact
;
1258
await 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
)]
1847
var 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")]
2531
Assert.Equal(density is ResourceListDensity.
Compact
? [expectedType] : [],
Model\DashboardViewPreferencesTests.cs (1)
104
Assert.Equal(ResourceListDensity.
Compact
, preferences.Density);