Skip to content

Commit 55239cb

Browse files
GiteaBotwxiaoguang
andauthored
Fix image border-radius (#23886) (#23930)
Backport #23886 by @wxiaoguang 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) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 parent df74ee0 commit 55239cb

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
}
@@ -1181,9 +1173,9 @@ a.ui.card:hover,
11811173
border-color: var(--color-secondary);
11821174
}
11831175

1176+
img.ui.avatar,
11841177
.ui.avatar img,
11851178
.ui.avatar svg,
1186-
.ui.avatar.img,
11871179
.ui.cards > .card img.avatar,
11881180
.ui.cards > .card .avatar img,
11891181
.ui.card img.avatar,

0 commit comments

Comments
 (0)