mirror of
				https://github.com/stackblitz-labs/bolt.diy
				synced 2025-06-26 18:26:38 +00:00 
			
		
		
		
	Fixed theming of Copy Code button
This commit is contained in:
		
							parent
							
								
									66cb2af6df
								
							
						
					
					
						commit
						5f144e6994
					
				@ -53,7 +53,7 @@ export const CodeBlock = memo(
 | 
			
		||||
        <div
 | 
			
		||||
          className={classNames(
 | 
			
		||||
            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,
 | 
			
		||||
            },
 | 
			
		||||
@ -62,7 +62,7 @@ export const CodeBlock = memo(
 | 
			
		||||
          {!disableCopy && (
 | 
			
		||||
            <button
 | 
			
		||||
              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-100': copied,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user