Skip to content

Add 'Copy lyrics' floating button to song detail page - #144

Merged
tacticalnoot merged 1 commit into
mainfrom
codex/add-copy-lyrics-button-to-/id-page
May 14, 2026
Merged

Add 'Copy lyrics' floating button to song detail page#144
tacticalnoot merged 1 commit into
mainfrom
codex/add-copy-lyrics-button-to-/id-page

Conversation

@tacticalnoot

Copy link
Copy Markdown
Owner

Motivation

  • Provide a quick, discoverable way for visitors to copy a song's lyrics from the song detail page (/[id]) without manually selecting text.

Description

  • Add a small floating Copy lyrics button to src/pages/[id].astro that only renders when lyricsDisplay is present and an inline <script is:inline> attaches a click handler which calls navigator.clipboard.writeText and shows transient feedback (Copied / Copy failed).

Testing

  • Ran npm run check which runs svelte-check; it completed but reported existing unrelated type errors in other components so the project-wide type check failed (unrelated to this change).
  • Attempted npm run lint but the repository does not define a lint script, so linting was not performed.

Codex Task

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying smol-fe with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6cd7a9a
Status:⚡️  Build in progress...

View logs

@tacticalnoot
tacticalnoot merged commit f1bf285 into main May 14, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant