Skip to content

Commit

Permalink
fix: shiki block style
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 6, 2024
1 parent da486bc commit 75908d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const ShikiCode: FC<ShikiProps & {
)
}
return (
<div className={cn("group relative", styles["shiki-wrapper"], transparent ? styles["transparent"] : null, className)}>
<div className={cn("group relative my-4", styles["shiki-wrapper"], transparent ? styles["transparent"] : null, className)}>
<div dangerouslySetInnerHTML={{ __html: rendered }} />
<CopyButton value={code} className="absolute right-1 top-1 opacity-0 duration-200 group-hover:opacity-100" />
</div>
Expand Down

0 comments on commit 75908d4

Please sign in to comment.