mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix image border-radius (#23886)
1. Instead of polluting the `border-radius` style globally, each "img" usage should declare their own styles. 2. There were some bugs in code, I believe the `.img` selector was done by mistake. After:  
This commit is contained in:
		@@ -230,10 +230,6 @@ body {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
img {
 | 
			
		||||
  border-radius: 3px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
table {
 | 
			
		||||
  border-collapse: collapse;
 | 
			
		||||
}
 | 
			
		||||
@@ -865,10 +861,6 @@ a.label,
 | 
			
		||||
  margin-bottom: -0.25rem;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.ui.dropdown .menu > .item > svg.img {
 | 
			
		||||
  margin-right: 0.78571429rem;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.ui.selection.dropdown .menu > .item {
 | 
			
		||||
  border-color: var(--color-secondary);
 | 
			
		||||
}
 | 
			
		||||
@@ -1178,9 +1170,9 @@ a.ui.card:hover {
 | 
			
		||||
  border-color: var(--color-secondary);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
img.ui.avatar,
 | 
			
		||||
.ui.avatar img,
 | 
			
		||||
.ui.avatar svg,
 | 
			
		||||
.ui.avatar.img,
 | 
			
		||||
.ui.cards > .card img.avatar,
 | 
			
		||||
.ui.cards > .card .avatar img,
 | 
			
		||||
.ui.card img.avatar,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user