design : add style invisible when lg and visible when hover

This commit is contained in:
jang_yoonsu
2024-05-16 23:29:33 +09:00
parent 3767d14e5c
commit a9b61d3e13

View File

@@ -99,7 +99,10 @@ const ConversationBubble = forwardRef<
{children}
</code>
)}
<div className="absolute right-3 top-3">
<div
className={`absolute right-3 top-3 lg:invisible
${type !== 'ERROR' ? 'group-hover:lg:visible' : ''} `}
>
<CoppyButton
text={String(children).replace(/\n$/, '')}
/>