Skip to content

Commit 6dcb8ac

Browse files
committed
fix: adjust positioning of the action button in DocCodeViewer component
1 parent d092f30 commit 6dcb8ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/showcase/components/doc/DocCodeViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const DocCodeViewer = ({
5151
>
5252
{children}
5353
</pre>
54-
<div className="absolute flex items-center top-3 right-3 p-0.5 rounded-[10px] bg-white/10 backdrop-blur-[6px] border border-[hsla(0,0%,100%,.1)] group-hover/pre:opacity-100 opacity-0 transition-opacity duration-150 ">
54+
<div className="absolute flex items-center top-2 right-2 p-0.5 rounded-[10px] bg-white/10 backdrop-blur-[6px] border border-[hsla(0,0%,100%,.1)] group-hover/pre:opacity-100 opacity-0 transition-opacity duration-150 ">
5555
{__spec__ === 'DocDemoViewer' && (
5656
<>
5757
<DocCodeViewerConfigButton onClick={() => setIsExpanded(!isExpanded)}>

0 commit comments

Comments
 (0)