From fa68acabf3a255b73ecfefc2bd6f327933aa002d Mon Sep 17 00:00:00 2001 From: Innei Date: Tue, 21 May 2024 18:29:18 +0800 Subject: [PATCH] fix: shiki copy code button pos Signed-off-by: Innei --- src/components/ui/code-highlighter/shiki/ShikiWrapper.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/ui/code-highlighter/shiki/ShikiWrapper.tsx b/src/components/ui/code-highlighter/shiki/ShikiWrapper.tsx index fa15531d6a..b3de1d1a6c 100644 --- a/src/components/ui/code-highlighter/shiki/ShikiWrapper.tsx +++ b/src/components/ui/code-highlighter/shiki/ShikiWrapper.tsx @@ -17,7 +17,6 @@ import { AutoResizeHeight } from '~/components/modules/shared/AutoResizeHeight' import { useMaskScrollArea } from '~/hooks/shared/use-mask-scrollarea' import { stopPropagation } from '~/lib/dom' import { clsxm } from '~/lib/helper' -import { toast } from '~/lib/toast' import { MotionButtonBase } from '../../button' import styles from './Shiki.module.css' @@ -137,7 +136,7 @@ export const ShikiHighLighterWrapper = forwardRef< {!filename && !!language && (
{language.toUpperCase()}
@@ -146,7 +145,7 @@ export const ShikiHighLighterWrapper = forwardRef<