mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
docs: optimize home display (#4519)
* docs: optimize home display and route highlight * docs: optimize home display
This commit is contained in:
parent
866e66dd24
commit
b7de85231c
@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user