Skip to content

Commit 65a64fb

Browse files
committed
fix: shiki copy button position
Signed-off-by: Innei <[email protected]>
1 parent 8390bbd commit 65a64fb

File tree

1 file changed

+1
-1
lines changed
  • src/components/ui/code-highlighter/shiki

1 file changed

+1
-1
lines changed

src/components/ui/code-highlighter/shiki/Shiki.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const ShikiHighLighter: FC<Props> = (props) => {
143143
'absolute right-2 top-2 z-[1] flex rounded p-2 text-xs center',
144144
'rounded-md border border-accent/5 bg-accent/80 p-1.5 text-white backdrop-blur duration-200',
145145
'opacity-0 group-hover:opacity-100',
146-
filename && 'top-12',
146+
filename && '!top-12',
147147
)}
148148
>
149149
<i className="icon-[mingcute--copy-2-fill] h-4 w-4" />

0 commit comments

Comments
 (0)