mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
fix: improve back-to-top button to adapt layout changes properly (#527)
Update back-to-top button to accommodate properly, even if the max-width of the blog post is updated. Uses `fixed` position on mobile and `sticky` position on large screens.
This commit is contained in:
@@ -110,17 +110,13 @@ const nextPost =
|
||||
|
||||
<EditPost class="sm:hidden" {hideEditPost} {post} />
|
||||
|
||||
<ul class="mt-4 mb-8 sm:my-8">
|
||||
{tags.map(tag => <Tag tag={slugifyStr(tag)} tagName={tag} />)}
|
||||
</ul>
|
||||
|
||||
<BackToTopButton />
|
||||
|
||||
<div
|
||||
class="flex flex-col items-center justify-between gap-6 sm:flex-row sm:items-start sm:gap-8"
|
||||
>
|
||||
<ul class="self-start">
|
||||
{tags.map(tag => <Tag tag={slugifyStr(tag)} tagName={tag} />)}
|
||||
</ul>
|
||||
|
||||
<ShareLinks />
|
||||
</div>
|
||||
<ShareLinks />
|
||||
|
||||
<hr class="my-6 border-dashed" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user