Browse Source

Merge pull request '修改项目显示默认头像大小' (#2337) from fix-2039 into V20220630

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2337
Reviewed-by: liuzx <liuzx@pcl.ac.cn>
fix-2256
liuzx 3 years ago
parent
commit
ee8e7134b8
2 changed files with 1542 additions and 1155 deletions
  1. +1539
    -1152
      public/home/search.js
  2. +3
    -3
      templates/explore/repo_list.tmpl

+ 1539
- 1152
public/home/search.js
File diff suppressed because it is too large
View File


+ 3
- 3
templates/explore/repo_list.tmpl View File

@@ -18,7 +18,7 @@


.ui.list .list>.item>img.image+.content, .ui.list .list>.item>img.image+.content,
.ui.list>.item>img.image+.content { .ui.list>.item>img.image+.content {
width: calc(100% - 30px);
width: calc(100% - 34px);
margin-left: 0; margin-left: 0;
} }


@@ -107,9 +107,9 @@
{{range .Repos}} {{range .Repos}}
<div class="item"> <div class="item">
{{if .RelAvatarLink}} {{if .RelAvatarLink}}
<img class="ui avatar image" src="{{.RelAvatarLink}}">
<img class="ui avatar image" style="width: 28px;height: 28px;" src="{{.RelAvatarLink}}">
{{else}} {{else}}
<img class="ui avatar image" avatar="{{.Owner.Name}}">
<img class="ui avatar image" style="width: 28px;height: 28px;" avatar="{{.Owner.Name}}">
{{end}} {{end}}
<div class="content"> <div class="content">
<div class="ui header"> <div class="ui header">


Loading…
Cancel
Save