mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-05 20:46:43 +00:00
Merge pull request #774 from D-Byte/copyMyFix
ui: Fixed theming of Copy Code button
This commit is contained in:
commit
25b80ab267
@ -53,7 +53,7 @@ export const CodeBlock = memo(
|
|||||||
<div
|
<div
|
||||||
className={classNames(
|
className={classNames(
|
||||||
styles.CopyButtonContainer,
|
styles.CopyButtonContainer,
|
||||||
'bg-white absolute top-[10px] right-[10px] rounded-md z-10 text-lg flex items-center justify-center opacity-0 group-hover:opacity-100',
|
'bg-transparant absolute top-[10px] right-[10px] rounded-md z-10 text-lg flex items-center justify-center opacity-0 group-hover:opacity-100',
|
||||||
{
|
{
|
||||||
'rounded-l-0 opacity-100': copied,
|
'rounded-l-0 opacity-100': copied,
|
||||||
},
|
},
|
||||||
@ -62,7 +62,7 @@ export const CodeBlock = memo(
|
|||||||
{!disableCopy && (
|
{!disableCopy && (
|
||||||
<button
|
<button
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'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',
|
'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',
|
||||||
{
|
{
|
||||||
'before:opacity-0': !copied,
|
'before:opacity-0': !copied,
|
||||||
'before:opacity-100': copied,
|
'before:opacity-100': copied,
|
||||||
|
Loading…
Reference in New Issue
Block a user