From 26935fde43a09f45b51d56d1a9f20c26dba7e085 Mon Sep 17 00:00:00 2001 From: Cody Mullins <1738479+codymullins@users.noreply.github.com> Date: Tue, 2 Apr 2024 11:13:32 -0400 Subject: [PATCH] style tweaks for purecard --- src/Pure.Blazor.Components/Display/PureCard.razor | 15 +++++++++------ .../Pure.Blazor.Components.csproj | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/Pure.Blazor.Components/Display/PureCard.razor b/src/Pure.Blazor.Components/Display/PureCard.razor index b2d20d6..e2a2852 100644 --- a/src/Pure.Blazor.Components/Display/PureCard.razor +++ b/src/Pure.Blazor.Components/Display/PureCard.razor @@ -4,25 +4,27 @@ @if (Alignment == PureCardAlignment.Top) { -
+
@if (!string.IsNullOrWhiteSpace(ImageUrl)) { - + @ImageAlt } + +
@if (!string.IsNullOrWhiteSpace(Title)) { @Title } -

+

@ChildContent -

+
} else { -
+
@if (!string.IsNullOrWhiteSpace(ImageUrl)) {
@@ -34,7 +36,7 @@ else { @Title } -

@ChildContent

+
@ChildContent
@@ -47,4 +49,5 @@ else [Parameter] public PureCardAlignment Alignment { get; set; } [Parameter] public string? ImageUrl { get; set; } + [Parameter] public string? ImageAlt { get; set; } } diff --git a/src/Pure.Blazor.Components/Pure.Blazor.Components.csproj b/src/Pure.Blazor.Components/Pure.Blazor.Components.csproj index 0acc672..088da9a 100644 --- a/src/Pure.Blazor.Components/Pure.Blazor.Components.csproj +++ b/src/Pure.Blazor.Components/Pure.Blazor.Components.csproj @@ -7,7 +7,7 @@ preview True PureBlazor Components - 0.3.0 + 0.4.0 PureBlazor.Components Blazor UI components for .NET Blazor with an optional headless mode. https://pureblazor.com