Skip to content

Commit

Permalink
fix: shiki copy button position
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Mar 18, 2024
1 parent 8390bbd commit 65a64fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/code-highlighter/shiki/Shiki.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const ShikiHighLighter: FC<Props> = (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',
)}
>
<i className="icon-[mingcute--copy-2-fill] h-4 w-4" />
Expand Down

0 comments on commit 65a64fb

Please sign in to comment.