Skip to content

fix: improve back-to-top button to adapt layout changes properly#527

Merged
satnaing merged 2 commits into
mainfrom
fix/improve-back-to-top-button-position
Jun 10, 2025
Merged

fix: improve back-to-top button to adapt layout changes properly#527
satnaing merged 2 commits into
mainfrom
fix/improve-back-to-top-button-position

Conversation

@satnaing

@satnaing satnaing commented Jun 9, 2025

Copy link
Copy Markdown
Owner

Description

Update back-to-top button to accommodate properly
even if the max-width of the blog post is updated. Use fixed position on mobile and sticky position on large screens.

Desktop Mobile
improved-back-to-top-button-desktop.mp4
improved-back-to-top-button-mobile.mp4

Types of changes

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Documentation Update (if none of the other choices apply)
  • Others (any other types not listed above)

Checklist

  • I have read the Contributing Guide
  • I have added the necessary documentation (if appropriate)
  • Breaking Change (fix or feature that would cause existing functionality to not work as expected)

Related PR

#520 #525

Closes: #497

satnaing added 2 commits June 9, 2025 12:44
Update back-to-top button to accommodate properly
even if the max-width of the blog post is updated.
Use `fixed` position on mobile and `sticky` position
on large screens.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying astro-paper with  Cloudflare Pages  Cloudflare Pages

Latest commit: 93f504e
Status: ✅  Deploy successful!
Preview URL: https://f6efa42e.astro-paper.pages.dev
Branch Preview URL: https://fix-improve-back-to-top-butt.astro-paper.pages.dev

View logs

@satnaing
satnaing merged commit 0cc647c into main Jun 10, 2025
5 checks passed
@satnaing
satnaing deleted the fix/improve-back-to-top-button-position branch June 10, 2025 01:04
miyayaLora pushed a commit to miyayaLora/astro-paper-zed-like that referenced this pull request Jun 27, 2025
…naing#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.

(cherry picked from commit 0cc647c)
jxgla pushed a commit to jxgla/astro-paper that referenced this pull request Mar 10, 2026
…naing#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Floating "Back to Top" Button for Better Navigation

1 participant