Browse Source

[doc] 更新Clis组件,修改按钮类名以添加光标样式,并优化代码显示区域的类名。

dufu1991 1 year ago
parent
commit
e72f54b674
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/site/src/lib/clis/Clis.svelte

+ 2 - 2
docs/site/src/lib/clis/Clis.svelte

@@ -43,7 +43,7 @@
 		type="button"
 		onmouseenter={() => (isHover = true)}
 		onmouseleave={() => (isHover = false)}
-		class="relative inline-flex items-center justify-center rounded-r-lg border border-black/5 bg-black/5 px-4 py-1 transition-all duration-300 dark:border-white/10 dark:bg-white/10"
+		class="relative inline-flex cursor-copy items-center justify-center rounded-r-lg border border-black/5 bg-black/5 px-4 py-1 transition-all duration-300 dark:border-white/10 dark:bg-white/10"
 		onclick={async () => {
 			await navigator.clipboard.writeText(codeGroupSvgData[showCli].cli);
 			isClicked = true;
@@ -52,7 +52,7 @@
 			}, 2000);
 		}}
 	>
-		<code class="cursor-copy text-sm opacity-80">{codeGroupSvgData[showCli].cli}</code>
+		<code class="text-sm opacity-80">{codeGroupSvgData[showCli].cli}</code>
 		<div
 			class="bg-primary dark:bg-dark rounded-xs absolute -top-3 left-1/2 size-3 -translate-x-1/2 rotate-45 transition-all {isHover
 				? '-translate-y-1/2 opacity-100'