mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 04:05:42 +01:00
Fix avatar misalignment (#22955)
Fix #22818. | Before | After | | ---- | ---- | | <img src="https://user-images.githubusercontent.com/15528715/219617504-d86e7a90-d4ac-4a92-bd8a-100dddc693d5.png" width="200px" /> | <img src="https://user-images.githubusercontent.com/15528715/219618645-a4045f65-bda6-49ce-a676-f03a9817bb70.png" width="200px" />| | <img src="https://user-images.githubusercontent.com/15528715/219618013-844ef208-853b-44bd-a67c-36e360f0ffa7.png" width="200px" /> | <img src="https://user-images.githubusercontent.com/15528715/219618361-cb13c369-852e-47bf-ae30-e429d348823d.png" width="200px" /> | --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
c53ad052d8
commit
65fc2d1b83
2 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
||||||
{{avatar $.Context .User}}
|
{{avatar $.Context .User}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<span>
|
<span class="gt-ml-2">
|
||||||
{{if .User}}
|
{{if .User}}
|
||||||
<a href="{{.User.HomeLink}}">{{.User.GetDisplayName}}</a>
|
<a href="{{.User.HomeLink}}">{{.User.GetDisplayName}}</a>
|
||||||
{{else if .Team}}
|
{{else if .Team}}
|
||||||
|
|
|
@ -69,6 +69,7 @@
|
||||||
.ui.user.list {
|
.ui.user.list {
|
||||||
.item {
|
.item {
|
||||||
padding-bottom: 25px;
|
padding-bottom: 25px;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
&:not(:first-child) {
|
&:not(:first-child) {
|
||||||
border-top: 1px solid var(--color-secondary);
|
border-top: 1px solid var(--color-secondary);
|
||||||
|
@ -78,6 +79,7 @@
|
||||||
img.ui.avatar {
|
img.ui.avatar {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
|
|
Loading…
Reference in a new issue