mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 14:30:29 +03:00 
			
		
		
		
	fix style issue of reply placeholder (#2181)
This commit is contained in:
		
							parent
							
								
									b524778039
								
							
						
					
					
						commit
						d5766b58fe
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -21,7 +21,6 @@ export const ReplyLayout = as<'div', ReplyLayoutProps>(
 | 
			
		|||
    <Box
 | 
			
		||||
      className={classNames(css.Reply, className)}
 | 
			
		||||
      alignItems="Center"
 | 
			
		||||
      alignSelf="Start"
 | 
			
		||||
      gap="100"
 | 
			
		||||
      {...props}
 | 
			
		||||
      ref={ref}
 | 
			
		||||
| 
						 | 
				
			
			@ -38,7 +37,7 @@ export const ReplyLayout = as<'div', ReplyLayoutProps>(
 | 
			
		|||
);
 | 
			
		||||
 | 
			
		||||
export const ThreadIndicator = as<'div'>(({ ...props }, ref) => (
 | 
			
		||||
  <Box className={css.ThreadIndicator} alignItems="Center" alignSelf="Start" {...props} ref={ref}>
 | 
			
		||||
  <Box className={css.ThreadIndicator} alignItems="Center" {...props} ref={ref}>
 | 
			
		||||
    <Icon className={css.ThreadIndicatorIcon} src={Icons.Message} />
 | 
			
		||||
    <Text size="T200">Threaded reply</Text>
 | 
			
		||||
  </Box>
 | 
			
		||||
| 
						 | 
				
			
			@ -74,7 +73,7 @@ export const Reply = as<'div', ReplyProps>(
 | 
			
		|||
    const bodyJSX = body ? scaleSystemEmoji(trimReplyFromBody(body)) : fallbackBody;
 | 
			
		||||
 | 
			
		||||
    return (
 | 
			
		||||
      <Box direction="Column" {...props} ref={ref}>
 | 
			
		||||
      <Box direction="Column" alignItems="Start" {...props} ref={ref}>
 | 
			
		||||
        {threadRootId && (
 | 
			
		||||
          <ThreadIndicator as="button" data-event-id={threadRootId} onClick={onClick} />
 | 
			
		||||
        )}
 | 
			
		||||
| 
						 | 
				
			
			@ -100,7 +99,7 @@ export const Reply = as<'div', ReplyProps>(
 | 
			
		|||
              style={{
 | 
			
		||||
                backgroundColor: color.SurfaceVariant.ContainerActive,
 | 
			
		||||
                maxWidth: toRem(placeholderWidth),
 | 
			
		||||
                width: '100%',
 | 
			
		||||
                width: '100vw',
 | 
			
		||||
              }}
 | 
			
		||||
            />
 | 
			
		||||
          )}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue