Skip to content

Commit d2b1d21

Browse files
committed
fix: Improve styling for search results pages (aligned with other pages)
1 parent d34dc84 commit d2b1d21

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/LinkDotNet.Blog.Web/Features/Search/SearchPage.razor

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
@using LinkDotNet.Blog.Infrastructure.Persistence
55
@inject IRepository<BlogPost> BlogPostRepository
66

7-
<h3>Results for @SearchTerm</h3>
8-
9-
<div class="content px-4">
7+
<div class="container">
8+
<h3 class="pb-3 fw-bold">Results for @SearchTerm</h3>
109
@for (var i = 0; i < blogPosts.Count; i++)
1110
{
1211
<ShortBlogPost BlogPost="blogPosts[i]" UseAlternativeStyle="@(i % 2 != 0)"></ShortBlogPost>

src/LinkDotNet.Blog.Web/Features/SearchByTag/SearchByTagPage.razor

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66

77
<PageTitle>Search for tag: @Tag</PageTitle>
88

9-
<h3>All posts with Tag <em>@Tag</em></h3>
9+
<div class="container">
10+
<h3 class="pb-3 fw-bold">All posts with Tag <em>@Tag</em></h3>
1011

11-
@for (var i = 0; i < blogPosts.Count; i++)
12-
{
13-
<ShortBlogPost BlogPost="blogPosts[i]" UseAlternativeStyle="@(i % 2 != 0)"></ShortBlogPost>
14-
}
12+
@for (var i = 0; i < blogPosts.Count; i++)
13+
{
14+
<ShortBlogPost BlogPost="blogPosts[i]" UseAlternativeStyle="@(i % 2 != 0)"></ShortBlogPost>
15+
}
16+
</div>
1517
@code {
1618
[Parameter, EditorRequired]
1719
public required string Tag { get; set; }

0 commit comments

Comments
 (0)