Skip to content

Commit

Permalink
UI fix on blog card
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave-lab12 committed Nov 2, 2023
1 parent 05cd7e6 commit 90fde22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Blog/BlogCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ function stripHtml(dirtyString: string) {
<a class="card" href=`/blog/${url}`>
<div class="left">
<span>{formatTimeAgo(created_at)}</span>
<h1>{cropText(title, 10)}</h1>
<div class="">{stripHtml(cropText(description, 10))}</div>
<h1 class="mb-1">{cropText(title, 10)}</h1>
<div class="mt-2">{stripHtml(cropText(description, 10))}</div>
</div>
<img class="card-img" src={image} alt="title" />
</a>
Expand All @@ -38,7 +38,7 @@ function stripHtml(dirtyString: string) {
}
.card-img {
width: 100%;
height: 274px;
/* height: 274px; */
max-width: 265px;
border-radius: 0px 10px 10px 0px;
}
Expand Down

0 comments on commit 90fde22

Please sign in to comment.