mirror of
https://github.com/usememos/memos.git
synced 2025-03-19 12:10:08 +01:00
fix: show copy button on hover (#1002)
This commit is contained in:
parent
4a7b764ab3
commit
42cd93cf33
@ -29,9 +29,9 @@ const renderer = (rawStr: string) => {
|
||||
};
|
||||
|
||||
return (
|
||||
<pre>
|
||||
<pre className="group">
|
||||
<button
|
||||
className="text-xs font-mono italic absolute top-0 right-0 px-2 leading-6 border btn-text rounded opacity-60"
|
||||
className="text-xs font-mono italic absolute top-0 right-0 px-2 leading-6 border btn-text rounded opacity-0 group-hover:opacity-60"
|
||||
onClick={handleCopyButtonClick}
|
||||
>
|
||||
copy
|
||||
|
Loading…
x
Reference in New Issue
Block a user