mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-31 05:24:13 +00:00 
			
		
		
		
	Simplify the getDecorationZIndex function
This commit is contained in:
		
							parent
							
								
									28aa99b273
								
							
						
					
					
						commit
						e43c58a955
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -115,8 +115,7 @@ function getDecorationOffset(decoration: Omit<Misskey.entities.UserDetailed['ava | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function getDecorationZIndex(decoration: Omit<Misskey.entities.UserDetailed['avatarDecorations'][number], 'id'>) { | function getDecorationZIndex(decoration: Omit<Misskey.entities.UserDetailed['avatarDecorations'][number], 'id'>) { | ||||||
| 	const zIndex = decoration.showBelow ? 0 : 1; | 	return decoration.showBelow ? '0' : undefined; | ||||||
| 	return zIndex === 1 ? undefined : `${zIndex}`; |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| const color = ref<string | undefined>(); | const color = ref<string | undefined>(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue