From 65a64fb1ff71c8dacfec1adf346ede7cfe9546be Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 18 Mar 2024 22:12:35 +0800 Subject: [PATCH] fix: shiki copy button position Signed-off-by: Innei --- src/components/ui/code-highlighter/shiki/Shiki.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui/code-highlighter/shiki/Shiki.tsx b/src/components/ui/code-highlighter/shiki/Shiki.tsx index c58a05847d..7d16751a6b 100644 --- a/src/components/ui/code-highlighter/shiki/Shiki.tsx +++ b/src/components/ui/code-highlighter/shiki/Shiki.tsx @@ -143,7 +143,7 @@ export const ShikiHighLighter: FC = (props) => { 'absolute right-2 top-2 z-[1] flex rounded p-2 text-xs center', 'rounded-md border border-accent/5 bg-accent/80 p-1.5 text-white backdrop-blur duration-200', 'opacity-0 group-hover:opacity-100', - filename && 'top-12', + filename && '!top-12', )} >