Skip to content

Commit 376396a

Browse files
authored
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: ![image](https://user-images.githubusercontent.com/2114189/229415742-161b018f-14c3-471d-bcf7-34f83e5c2d89.png) ![image](https://user-images.githubusercontent.com/2114189/229415789-829d364a-76da-47a5-8c61-398cc990873c.png)
1 parent e485539 commit 376396a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

web_src/css/base.css

+1-9
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,6 @@ body {
230230
}
231231
}
232232

233-
img {
234-
border-radius: 3px;
235-
}
236-
237233
table {
238234
border-collapse: collapse;
239235
}
@@ -865,10 +861,6 @@ a.label,
865861
margin-bottom: -0.25rem;
866862
}
867863

868-
.ui.dropdown .menu > .item > svg.img {
869-
margin-right: 0.78571429rem;
870-
}
871-
872864
.ui.selection.dropdown .menu > .item {
873865
border-color: var(--color-secondary);
874866
}
@@ -1178,9 +1170,9 @@ a.ui.card:hover {
11781170
border-color: var(--color-secondary);
11791171
}
11801172

1173+
img.ui.avatar,
11811174
.ui.avatar img,
11821175
.ui.avatar svg,
1183-
.ui.avatar.img,
11841176
.ui.cards > .card img.avatar,
11851177
.ui.cards > .card .avatar img,
11861178
.ui.card img.avatar,

0 commit comments

Comments
 (0)