Skip to content

Commit d1cf5be

Browse files
Adebesin-Cellclaude
andcommitted
fix: delay context menu close after copy so confirmation is readable
Keep the menu open for 800ms after copying the SVG so the user can see the "Copied!" label before it disappears. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 78df9f3 commit d1cf5be

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

app/components/LogoContextMenu.vue

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,10 @@ function close() {
3434
const { copy, copied } = useClipboard({ copiedDuring: 2000 })
3535
3636
async function copySvg() {
37-
try {
38-
const res = await fetch('/logo.svg')
39-
const svg = await res.text()
40-
await copy(svg)
41-
} finally {
42-
close()
43-
}
37+
const res = await fetch('/logo.svg')
38+
const svg = await res.text()
39+
await copy(svg)
40+
setTimeout(close, 800)
4441
}
4542
4643
function goToBrand() {

0 commit comments

Comments
 (0)