Skip to content

Commit b7de852

Browse files
authored
docs: optimize home display (#4519)
* docs: optimize home display and route highlight * docs: optimize home display
1 parent 866e66d commit b7de852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/docs/components/code-window/code-window.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const CodeWindow: React.FC<CodeWindowProps> = ({highlightLines, showCopy,
9090
return (
9191
<div className="relative">
9292
<CodeBlock ref={wrapperRef} {...props} />
93-
{showCopy && <CopyButton value={props.value} />}
93+
{showCopy && <CopyButton className="top-2 absolute right-2" value={props.value} />}
9494
</div>
9595
);
9696
};

0 commit comments

Comments
 (0)