mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 14:30:29 +03:00 
			
		
		
		
	Show a loading spinner on spoiled media when unblurred
This commit is contained in:
		
							parent
							
								
									815026e05b
								
							
						
					
					
						commit
						5095594297
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -214,7 +214,7 @@ export const ImageContent = as<'div', ImageContentProps>(
 | 
			
		|||
        )}
 | 
			
		||||
        {(srcState.status === AsyncStatus.Loading || srcState.status === AsyncStatus.Success) &&
 | 
			
		||||
          !load &&
 | 
			
		||||
          !markedAsSpoiler && (
 | 
			
		||||
          !blurred && (
 | 
			
		||||
            <Box className={css.AbsoluteContainer} alignItems="Center" justifyContent="Center">
 | 
			
		||||
              <Spinner variant="Secondary" />
 | 
			
		||||
            </Box>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -186,7 +186,7 @@ export const VideoContent = as<'div', VideoContentProps>(
 | 
			
		|||
        )}
 | 
			
		||||
        {(srcState.status === AsyncStatus.Loading || srcState.status === AsyncStatus.Success) &&
 | 
			
		||||
          !load &&
 | 
			
		||||
          !markedAsSpoiler && (
 | 
			
		||||
          !blurred && (
 | 
			
		||||
            <Box className={css.AbsoluteContainer} alignItems="Center" justifyContent="Center">
 | 
			
		||||
              <Spinner variant="Secondary" />
 | 
			
		||||
            </Box>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue