Skip to content

Commit 0f35389

Browse files
committed
Use solid background for copy button to prevent text overlap
1 parent 772f2ec commit 0f35389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/components/CodeBlock.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function copyToClipboard() {
2626
<div class="relative group max-w-full">
2727
<button
2828
@click="copyToClipboard"
29-
class="absolute right-2 top-2 z-10 flex items-center gap-1.5 px-2.5 py-1.5 text-xs text-white border border-gray-500 rounded bg-transparent hover:bg-gray-700/50 transition-colors"
29+
class="absolute right-2 top-2 z-10 flex items-center gap-1.5 px-2.5 py-1.5 text-xs text-white border border-gray-500 rounded bg-gray-800 hover:bg-gray-700 transition-colors"
3030
:aria-label="copied ? 'Copied' : 'Copy to clipboard'">
3131
<Copy v-if="!copied" :size="14" />
3232
<Check v-else :size="14" />

0 commit comments

Comments
 (0)