🐛(component): 修复avatar组件样式错乱
This commit is contained in:
		
							parent
							
								
									9f3b3ad625
								
							
						
					
					
						commit
						404097e9fa
					
				@ -15,7 +15,6 @@
 | 
			
		||||
  color: #fff;
 | 
			
		||||
  white-space: nowrap;
 | 
			
		||||
  text-align: center;
 | 
			
		||||
  background: #ccc;
 | 
			
		||||
  width: 32px;
 | 
			
		||||
  height: 32px;
 | 
			
		||||
  line-height: 32px;
 | 
			
		||||
@ -45,3 +44,13 @@
 | 
			
		||||
  margin-left: -10px;
 | 
			
		||||
  display: inline-block;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.layui-avatar {
 | 
			
		||||
  & > img {
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
    background: #ccc;
 | 
			
		||||
    display: block;
 | 
			
		||||
    object-fit: cover;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -95,7 +95,7 @@ fetchContributors();
 | 
			
		||||
  display: inline-block;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.contributor img {
 | 
			
		||||
.contributor span {
 | 
			
		||||
  margin: 5px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user