feat(ResultScreen): wraps embed image markdown in a link to origin

This commit is contained in:
shay
2026-06-11 16:12:06 -07:00
parent 78299fa2b9
commit ceac269738
@@ -33,7 +33,7 @@ export function ResultScreen({ username, generating, generatedSvg, generateError
const [copied, setCopied] = useState(false) const [copied, setCopied] = useState(false)
const fallbackUrl = `${window.location.origin}/api/${encodeURIComponent(username)}` const fallbackUrl = `${window.location.origin}/api/${encodeURIComponent(username)}`
const finalUrl = embedUrl || fallbackUrl const finalUrl = embedUrl || fallbackUrl
const embedSnippet = `![${username}](${finalUrl})` const embedSnippet = `[![${username}](${finalUrl})](${window.location.origin})`
const copy = async () => { const copy = async () => {
try { try {