From 7ca457bb0461cb6cea6ca3a418a7973ed340e60a Mon Sep 17 00:00:00 2001 From: nmemmert Date: Wed, 22 Jul 2026 12:59:06 -0400 Subject: [PATCH] =?UTF-8?q?Consolidate=20Q&A=20share=20buttons=20=E2=80=94?= =?UTF-8?q?=20X=20and=20Facebook=20now=20share=20image;=20v1.0.13?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced the separate text-link X/FB buttons and the duplicate image buttons with a single X and Facebook button each that share the generated quote card. Keeps button row to 5: Upvote, X Share, Facebook Share, Copy link, Save image. Co-Authored-By: Claude Sonnet 4.6 --- package.json | 2 +- src/components/QASection.tsx | 14 +++----------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 45c8722..42d8a1f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "siteforge", "private": true, - "version": "1.0.12", + "version": "1.0.13", "type": "module", "scripts": { "dev": "vite", diff --git a/src/components/QASection.tsx b/src/components/QASection.tsx index 21fdb75..bfed529 100644 --- a/src/components/QASection.tsx +++ b/src/components/QASection.tsx @@ -1044,7 +1044,7 @@ export default function QASection() { type="button" aria-label="Share on X" className="qa-social-btn qa-social-btn--x" - onClick={() => shareToX(question)} + onClick={() => shareImageTo(question, 'x')} > Share @@ -1053,10 +1053,10 @@ export default function QASection() { type="button" aria-label="Share on Facebook" className="qa-social-btn qa-social-btn--fb" - onClick={() => shareToFacebook(question)} + onClick={() => shareImageTo(question, 'facebook')} > - {facebookCaptionCopied ? 'Caption copied' : 'Share'} + Share - - {(facebookCaptionCopied || linkCopied) && (