Skip to content

Commit

Permalink
docs: optimize home display
Browse files Browse the repository at this point in the history
  • Loading branch information
winchesHe committed Jan 8, 2025
1 parent 0bae8b5 commit f1df600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/docs/components/code-window/code-window.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const CodeWindow: React.FC<CodeWindowProps> = ({highlightLines, showCopy,
return (
<div className="relative">
<CodeBlock ref={wrapperRef} {...props} />
{showCopy && <CopyButton className="top-2" value={props.value} />}
{showCopy && <CopyButton className="top-2 absolute right-2" value={props.value} />}
</div>
);
};

0 comments on commit f1df600

Please sign in to comment.