Skip to content

Commit 8ec3447

Browse files
committed
Fixed some issues with tags on mobile devices
1 parent c0d8516 commit 8ec3447

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

src/LinkDotNet.Blog.Web/Features/ShowBlogPost/ShowBlogPostPage.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ else
1919
AbsolutePreviewImageUrl="@OgDataImage"
2020
Description="@(Markdown.ToPlainText(BlogPost.ShortDescription))"
2121
Keywords="@Tags"></OgData>
22-
<div class="blog-outer-box">
22+
<div class="d-flex justify-content-center pt-2">
2323
<div class="content blog-container">
2424
<div>
2525
<header class="text-center">
2626
<h1>@BlogPost.Title</h1></header>
27-
<div class="blogpost-date">
28-
<span class="date me-1"></span><span>@BlogPost.UpdatedDate.ToString("dd/MM/yyyy")</span>
27+
<div class="blogpost-metainformation d-flex flex-row flex-wrap gap-2">
28+
<div><span class="date"></span><span class="ms-1">@BlogPost.UpdatedDate.ToString("dd/MM/yyyy")</span></div>
2929
@if (BlogPost.Tags != null && BlogPost.Tags.Any())
3030
{
31-
<span class="blogpost-tag ms-3">
31+
<span class="blogpost-tag d-inline-block">
3232
@foreach (var tag in BlogPost.Tags.Select(t => t.Content))
3333
{
3434
<a class="goto-tag ms-1" href="/searchByTag/@(Uri.EscapeDataString(tag))">@tag</a>

src/LinkDotNet.Blog.Web/Features/ShowBlogPost/ShowBlogPostPage.razor.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
.blog-outer-box {
2-
display: flex;
3-
justify-content: center;
4-
padding-top: 10px;
5-
}
61
.blog-container {
7-
background: white;
2+
background: var(--white);
83
width: clamp(60%, 2vw, 90%);
94
box-shadow: 0 3px 7px -1px rgba(0, 0, 0, 0.1);
105
border-radius: 5px;
116
padding: 20px;
127
}
138

14-
.blogpost-date {
9+
.blogpost-metainformation {
1510
color: lightgrey;
1611
}
1712

0 commit comments

Comments
 (0)