UI: real clipboard copy + "Copied" bubble (works over HTTP) #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/ui-copy-fallback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the "copy" button only selecting the text. Root cause:
navigator.clipboardis only available in a secure context (HTTPS/localhost); over plain HTTP (the dogfood at.249) it's undefined, so the old handler fell intocatchand merely selected the field.copyText(text, btn)helper: usesnavigator.clipboardwhen available, falls back to adocument.execCommand("copy")textarea (works over HTTP), and shows a transient "Copied" bubble tooltip above the button (the requested feedback).web/static/index.htmlchange (CSS.copied-bubble+ JS helper + rewired handlers); no behavior change elsewhere.