mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
docs: fix APIMethod component styling after fumadocs update (#4421)
This commit is contained in:
committed by
GitHub
parent
c29fabe0dc
commit
6a7f50162e
@@ -33,26 +33,6 @@ export function Endpoint({
|
||||
>
|
||||
<Method method={method} />
|
||||
<span className="font-mono text-sm text-muted-foreground">{path}</span>
|
||||
<div className="absolute right-2" slot="copy">
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="transition-all duration-150 ease-in-out opacity-0 cursor-pointer scale-80 group-hover:opacity-100"
|
||||
onClick={() => {
|
||||
setCopying(true);
|
||||
navigator.clipboard.writeText(path);
|
||||
setTimeout(() => {
|
||||
setCopying(false);
|
||||
}, 1000);
|
||||
}}
|
||||
>
|
||||
{copying ? (
|
||||
<Check className="duration-150 ease-in-out size-4 zoom-in" />
|
||||
) : (
|
||||
<Copy className="size-4" />
|
||||
)}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user