diff --git a/src/BootstrapBlazor/Components/Card/Card.razor b/src/BootstrapBlazor/Components/Card/Card.razor index 3a63776e79c42759e0eec98a52e8377e476e8d48..a90b7016a6c8511fe9292092ab97b45b41cc7002 100644 --- a/src/BootstrapBlazor/Components/Card/Card.razor +++ b/src/BootstrapBlazor/Components/Card/Card.razor @@ -2,27 +2,30 @@ @inherits CardBase
-
- @if(IsCollapsible) - { -
- -
@HeaderText
-
- - } - else - { - if (CardHeader != null) + @if (CardHeader != null || !string.IsNullOrEmpty(HeaderText)) + { +
+ @if (IsCollapsible) { - @CardHeader +
+ +
@HeaderText
+
+ } else { - @HeaderText + if (CardHeader != null) + { + @CardHeader + } + else + { + @HeaderText + } } - } -
+
+ }
@CardBody