Added a compact form to the text switch

This commit is contained in:
Thorsten Sommer committed 2026-09-14 15:15:34 +02:00
1 parent b739e1a946
commit 1e4a5b4459
3 files changed
+18 -5

No files matched your search

@@ -39,7 +39,7 @@ public partial class MudTextSwitch : ComponentBase
[Parameter]
public bool Dense { get; set; }
private string FieldClasses => this.Dense ? "mb-2" : "mb-3";
private string FieldClasses => this.Dense ? "mb-2 text-switch-dense" : "mb-3";
private Size SwitchSize => this.Dense ? Size.Small : Size.Medium;
}