Skip to content

Commit 2e0000a

Browse files
committed
fix: show copy buttons on touch devices (#1771)
1 parent 7f2fc1a commit 2e0000a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/components/CopyToClipboardButton.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,17 @@ function handleClick() {
8585
}
8686
8787
@media (hover: none) {
88+
/* On touch devices show the button statically (no hover possible) */
8889
.copyButton {
89-
display: none;
90+
clip: auto;
91+
clip-path: none;
92+
height: auto;
93+
overflow: visible;
94+
width: auto;
95+
opacity: 1;
96+
translate: none;
97+
pointer-events: auto;
98+
transition: none;
9099
}
91100
}
92101
</style>

0 commit comments

Comments
 (0)