Reduce Threadgate button size (#4287)
This commit is contained in:
		
							parent
							
								
									8feb2ab449
								
							
						
					
					
						commit
						8de028387c
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -28,7 +28,7 @@ export type ButtonColor =
 | 
			
		|||
  | 'gradient_sunset'
 | 
			
		||||
  | 'gradient_nordic'
 | 
			
		||||
  | 'gradient_bonfire'
 | 
			
		||||
export type ButtonSize = 'tiny' | 'small' | 'medium' | 'large'
 | 
			
		||||
export type ButtonSize = 'tiny' | 'xsmall' | 'small' | 'medium' | 'large'
 | 
			
		||||
export type ButtonShape = 'round' | 'square' | 'default'
 | 
			
		||||
export type VariantProps = {
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			@ -283,6 +283,8 @@ export function Button({
 | 
			
		|||
        baseStyles.push({paddingVertical: 12}, a.px_2xl, a.rounded_sm, a.gap_md)
 | 
			
		||||
      } else if (size === 'small') {
 | 
			
		||||
        baseStyles.push({paddingVertical: 9}, a.px_lg, a.rounded_sm, a.gap_sm)
 | 
			
		||||
      } else if (size === 'xsmall') {
 | 
			
		||||
        baseStyles.push({paddingVertical: 6}, a.px_sm, a.rounded_sm, a.gap_sm)
 | 
			
		||||
      } else if (size === 'tiny') {
 | 
			
		||||
        baseStyles.push({paddingVertical: 4}, a.px_sm, a.rounded_xs, a.gap_xs)
 | 
			
		||||
      }
 | 
			
		||||
| 
						 | 
				
			
			@ -295,6 +297,8 @@ export function Button({
 | 
			
		|||
        }
 | 
			
		||||
      } else if (size === 'small') {
 | 
			
		||||
        baseStyles.push({height: 34, width: 34})
 | 
			
		||||
      } else if (size === 'xsmall') {
 | 
			
		||||
        baseStyles.push({height: 28, width: 28})
 | 
			
		||||
      } else if (size === 'tiny') {
 | 
			
		||||
        baseStyles.push({height: 20, width: 20})
 | 
			
		||||
      }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -49,7 +49,7 @@ export function ThreadgateBtn({
 | 
			
		|||
      <Button
 | 
			
		||||
        variant="solid"
 | 
			
		||||
        color="secondary"
 | 
			
		||||
        size="small"
 | 
			
		||||
        size="xsmall"
 | 
			
		||||
        testID="openReplyGateButton"
 | 
			
		||||
        onPress={onPress}
 | 
			
		||||
        label={label}>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue