Skip to content

Commit c948348

Browse files
authored
Merge pull request #20624 from dvdksn/fix-copy-zindex
site: decrease z-index for copy button
2 parents d6b40d3 + c303c47 commit c948348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/_default/_markup/render-codeblock.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{{ end }}
55
<div class="group relative">
66
<button x-data="{ code: '{{encoding.Base64Encode .Inner}}', copying: false }"
7-
class="absolute right-3 top-3 z-20 text-gray-light-300 dark:text-gray-dark-600" title="copy" @click="window.navigator.clipboard.writeText(atob(code).replaceAll(/^[\$>]\s+/gm, ''));
7+
class="absolute right-3 top-3 z-10 text-gray-light-300 dark:text-gray-dark-600" title="copy" @click="window.navigator.clipboard.writeText(atob(code).replaceAll(/^[\$>]\s+/gm, ''));
88
copying = true;
99
setTimeout(() => copying = false, 2000);">
1010
<span :class="{ 'group-hover:block' : !copying }" class="icon-svg hidden">{{ partialCached "icon" "content_copy" "content_copy" }}</span>

0 commit comments

Comments
 (0)