Skip to content

Commit 25b80ab

Browse files
authored
Merge pull request #774 from D-Byte/copyMyFix
ui: Fixed theming of Copy Code button
2 parents 7a0223d + ad19d3f commit 25b80ab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/commit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "commit": "0a4ef117ae5d3687b04415e64a22794ea55841d1" , "version": "0.0.1" }
1+
{ "commit": "0a4ef117ae5d3687b04415e64a22794ea55841d1" , "version": "0.0.1" }

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)