Skip to content

Commit 5f144e6

Browse files
author
Arne Durr
committed
Fixed theming of Copy Code button
1 parent 66cb2af commit 5f144e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/chat/CodeBlock.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const CodeBlock = memo(
5353
<div
5454
className={classNames(
5555
styles.CopyButtonContainer,
56-
'bg-white absolute top-[10px] right-[10px] rounded-md z-10 text-lg flex items-center justify-center opacity-0 group-hover:opacity-100',
56+
'bg-transparant absolute top-[10px] right-[10px] rounded-md z-10 text-lg flex items-center justify-center opacity-0 group-hover:opacity-100',
5757
{
5858
'rounded-l-0 opacity-100': copied,
5959
},
@@ -62,7 +62,7 @@ export const CodeBlock = memo(
6262
{!disableCopy && (
6363
<button
6464
className={classNames(
65-
'flex items-center bg-transparent p-[6px] justify-center before:bg-white before:rounded-l-md before:text-gray-500 before:border-r before:border-gray-300',
65+
'flex items-center bg-accent-500 p-[6px] justify-center before:bg-white before:rounded-l-md before:text-gray-500 before:border-r before:border-gray-300 rounded-md transition-theme',
6666
{
6767
'before:opacity-0': !copied,
6868
'before:opacity-100': copied,

0 commit comments

Comments
 (0)