Skip to content

Commit

Permalink
cosmetic tweak (#110)
Browse files Browse the repository at this point in the history
* cosmetic tweak

* loader spedup
  • Loading branch information
bamanczak authored Nov 25, 2024
1 parent 61fdaeb commit 446a66a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
29 changes: 28 additions & 1 deletion blog/src/components/BlogPostsTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@
on:click={() => openPost(slugger.slug(post.id))}
>
<td class={"text-2xl content-center" + setRowClass(index)}>
<Icon class="" icon={post.icon} />
<div class="icon-container">
<Icon class="icon" icon={post.icon} />
</div>
</td>
<td class={setRowClass(index) + " text-balance text-lg"}>
<span class="mb-0">{post.title}</span>
Expand Down Expand Up @@ -137,6 +139,18 @@
.icon-column {
min-width: 25px;
}
.icon-container {
width: 2rem;
height: 2rem;
display: flex;
align-items: center;
justify-content: center;
}
.icon {
width: 100%;
height: 100%;
}
tr td:first-child,
thead th:first-child {
Expand Down Expand Up @@ -176,4 +190,17 @@
border-bottom: 1px solid #e0e0e0;
border-top: 1px solid #e0e0e0;
}
.icon-container {
width: 2rem;
height: 2rem;
display: flex;
align-items: center;
justify-content: center;
}
.icon {
width: 100%;
height: 100%;
}
</style>
2 changes: 1 addition & 1 deletion blog/src/components/loader.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface Props {
threshold?: number | false;
}
const { animationDuration = 800, threshold = 200 } = Astro.props;
const { animationDuration = 300, threshold = 400 } = Astro.props;
---

<div
Expand Down

0 comments on commit 446a66a

Please sign in to comment.