Arne Durr
commited on
Commit
·
5f144e6
1
Parent(s):
66cb2af
Fixed theming of Copy Code button
Browse files
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,
|