fix: update edit post link styling and text (#545)

This commit is contained in:
Sat Naing
2025-06-20 22:49:27 +07:00
committed by GitHub
parent ce5b57b4d7
commit fa37a477d0
2 changed files with 13 additions and 17 deletions
+12 -16
View File
@@ -18,21 +18,17 @@ const showEditPost =
{
showEditPost && (
<div class:list={["opacity-80", className]}>
<span aria-hidden="true" class="max-sm:hidden">
|
</span>
<a
class="space-x-1.5 hover:opacity-75"
href={href}
rel="noopener noreferrer"
target="_blank"
>
<IconEdit class="inline-block size-6" />
<span class="italic max-sm:text-sm sm:inline">
{SITE.editPost.text}
</span>
</a>
</div>
<a
href={href}
target="_blank"
rel="noopener noreferrer"
class:list={[
"flex justify-baseline gap-1.5 opacity-80 hover:text-accent",
className,
]}
>
<IconEdit class="inline-block" />
<span>{SITE.editPost.text}</span>
</a>
)
}
+1 -1
View File
@@ -13,7 +13,7 @@ export const SITE = {
showBackButton: true, // show back button in post detail
editPost: {
enabled: true,
text: "Suggest Changes",
text: "Edit page",
url: "https://github.com/satnaing/astro-paper/edit/main/",
},
dynamicOgImage: true,