From fc272f3b58410f4e6be7239b3bb0589936e12e04 Mon Sep 17 00:00:00 2001 From: b1rdmania <102524336+b1rdmania@users.noreply.github.com> Date: Mon, 29 Dec 2025 16:22:10 +0000 Subject: [PATCH] Remove share link text box - just show Copied/Failed feedback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- index.html | 4 ---- src/main.ts | 26 ++++++-------------------- 2 files changed, 6 insertions(+), 24 deletions(-) diff --git a/index.html b/index.html index 9bb3abe..71c9dcb 100644 --- a/index.html +++ b/index.html @@ -1220,10 +1220,6 @@ - diff --git a/src/main.ts b/src/main.ts index 2d15c5c..4f30c33 100644 --- a/src/main.ts +++ b/src/main.ts @@ -55,8 +55,6 @@ class MotifApp { private copyLinkBtn!: HTMLButtonElement; private shareToXBtn!: HTMLButtonElement; - private shareLinkBox!: HTMLElement; - private shareLinkInput!: HTMLInputElement; // Embed snippet UI private embedSection: HTMLElement | null = null; @@ -129,8 +127,6 @@ class MotifApp { this.copyLinkBtn = document.getElementById('copyLinkBtn') as HTMLButtonElement; this.shareToXBtn = document.getElementById('shareToXBtn') as HTMLButtonElement; - this.shareLinkBox = document.getElementById('shareLinkBox') as HTMLElement; - this.shareLinkInput = document.getElementById('shareLinkInput') as HTMLInputElement; // iOS audio unlock UI (Motif) this.iosAudioBanner = document.getElementById('iosAudioBanner')!; @@ -730,22 +726,12 @@ class MotifApp { } } - if (copied) { - // Show brief "Copied!" feedback - const originalText = this.copyLinkBtn.textContent; - this.copyLinkBtn.textContent = 'Copied!'; - setTimeout(() => { - this.copyLinkBtn.textContent = originalText; - }, 1500); - // Hide the text box if it was showing from a previous attempt - this.shareLinkBox.style.display = 'none'; - } else { - // Last resort: show text box for manual copy - this.shareLinkInput.value = shareUrl; - this.shareLinkBox.style.display = 'block'; - this.shareLinkInput.focus(); - this.shareLinkInput.select(); - } + // Show feedback + const originalText = this.copyLinkBtn.textContent; + this.copyLinkBtn.textContent = copied ? 'Copied!' : 'Failed'; + setTimeout(() => { + this.copyLinkBtn.textContent = originalText; + }, 1500); } private async handleShareToX(): Promise {