Merge pull request #774 from D-Byte/copyMyFix
Browse files- app/commit.json +1 -1
- app/components/chat/CodeBlock.tsx +2 -2
app/commit.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{ "commit": "0a4ef117ae5d3687b04415e64a22794ea55841d1" , "version": "0.0.1" }
|
|
|
1 |
+
{ "commit": "0a4ef117ae5d3687b04415e64a22794ea55841d1" , "version": "0.0.1" }
|
app/components/chat/CodeBlock.tsx
CHANGED
@@ -53,7 +53,7 @@ export const CodeBlock = memo(
|
|
53 |
<div
|
54 |
className={classNames(
|
55 |
styles.CopyButtonContainer,
|
56 |
-
'bg-
|
57 |
{
|
58 |
'rounded-l-0 opacity-100': copied,
|
59 |
},
|
@@ -62,7 +62,7 @@ export const CodeBlock = memo(
|
|
62 |
{!disableCopy && (
|
63 |
<button
|
64 |
className={classNames(
|
65 |
-
'flex items-center bg-
|
66 |
{
|
67 |
'before:opacity-0': !copied,
|
68 |
'before:opacity-100': copied,
|
|
|
53 |
<div
|
54 |
className={classNames(
|
55 |
styles.CopyButtonContainer,
|
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',
|
57 |
{
|
58 |
'rounded-l-0 opacity-100': copied,
|
59 |
},
|
|
|
62 |
{!disableCopy && (
|
63 |
<button
|
64 |
className={classNames(
|
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',
|
66 |
{
|
67 |
'before:opacity-0': !copied,
|
68 |
'before:opacity-100': copied,
|