docs: optimize home display (#4519)

* docs: optimize home display and route highlight

* docs: optimize home display
This commit is contained in:
winches 2025-01-12 14:28:39 +08:00 committed by GitHub
parent 866e66dd24
commit b7de85231c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,7 +90,7 @@ export const CodeWindow: React.FC<CodeWindowProps> = ({highlightLines, showCopy,
return (
<div className="relative">
<CodeBlock ref={wrapperRef} {...props} />
{showCopy && <CopyButton value={props.value} />}
{showCopy && <CopyButton className="top-2 absolute right-2" value={props.value} />}
</div>
);
};