Improved ArticleCard
This commit is contained in:
parent
bbcb0a2ce3
commit
7847f357c3
|
@ -10,15 +10,17 @@
|
||||||
<ArticleLink Article="Article">
|
<ArticleLink Article="Article">
|
||||||
<h2 class="card-title">@Article.Title</h2>
|
<h2 class="card-title">@Article.Title</h2>
|
||||||
<small>@Article.PublishDate.ToString("d")</small>
|
<small>@Article.PublishDate.ToString("d")</small>
|
||||||
<p class="line-clamp-2">
|
<p class="@(Article.Categories.Count > 0 ? "line-clamp-2" : "line-clamp-4")">
|
||||||
@Article.Body
|
@Article.Body
|
||||||
</p>
|
</p>
|
||||||
</ArticleLink>
|
</ArticleLink>
|
||||||
<div class="card-actions flex flex-wrap gap-2">
|
@if (Article.Categories.Count > 0) {
|
||||||
@foreach (var category in Article.Categories.OrderBy(c => c.Color)) {
|
<div class="card-actions flex flex-wrap gap-2">
|
||||||
<CategoryBadgeComponent Category="category" />
|
@foreach (var category in Article.Categories.OrderBy(c => c.Color)) {
|
||||||
}
|
<CategoryBadgeComponent Category="category" />
|
||||||
</div>
|
}
|
||||||
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|
2
Wave/wwwroot/css/main.min.css
vendored
2
Wave/wwwroot/css/main.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue