diff --git a/quartz/components/CopyPageMarkdown.tsx b/quartz/components/CopyPageMarkdown.tsx index 30fa73516..61b89e819 100644 --- a/quartz/components/CopyPageMarkdown.tsx +++ b/quartz/components/CopyPageMarkdown.tsx @@ -116,7 +116,7 @@ const CopyPageMarkdown: QuartzComponent = ({ fileData, displayClass }: QuartzCom { return true } catch { // Fallback for mobile browsers - const textarea = Object.assign(document.createElement("textarea"), { - value: text, - style: "position:fixed;left:-9999px", - }) + const textarea = document.createElement("textarea") + textarea.value = text + textarea.style.cssText = "position:fixed;left:-9999px;top:0" document.body.appendChild(textarea) textarea.select() const ok = document.execCommand("copy") @@ -59,7 +58,7 @@ document.addEventListener("nav", () => { // Set the correct hrefs for Honcho, ChatGPT and Claude links if (honchoLink) { const prompt = `Read this page and answer questions about it: ${llmsUrl}` - honchoLink.href = `https://honcho.chat/?q=${encodeURIComponent(prompt)}` + honchoLink.href = `https://honcho.chat/?hints=search&q=${encodeURIComponent(prompt)}` } if (chatgptLink) { const prompt = `Read this page and answer questions about it: ${llmsUrl}` diff --git a/quartz/components/styles/copypage.scss b/quartz/components/styles/copypage.scss index 145cd7e43..03e007fde 100644 --- a/quartz/components/styles/copypage.scss +++ b/quartz/components/styles/copypage.scss @@ -40,7 +40,7 @@ position: absolute; top: calc(100% + 4px); right: 0; - width: 280px; + width: max-content; background: var(--light); border: 1px solid var(--lightgray); border-radius: 8px;