Skip to content

Commit 8e33746

Browse files
kerwin612wxiaoguangGiteaBot
authored
Optimize repo-list layout to enhance visual experience (#31272)
before: ![1717655078227](https://github.com/go-gitea/gitea/assets/3371163/4d564f96-c2f8-46b1-996f-6cc7abb940ef) ***The problem was that the icon and text were not on a horizontal line, and the horizontal was not centered;*** after: ![1717655094071](https://github.com/go-gitea/gitea/assets/3371163/b11797f6-05f8-486c-b5fd-df89d0cbdcfd) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
1 parent da4bbc4 commit 8e33746

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

templates/user/settings/repos.tmpl

+6-6
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,17 @@
8484
<div class="ui middle aligned divided list">
8585
{{range .Repos}}
8686
<div class="item">
87-
<div class="content">
87+
<div class="content flex-text-block">
8888
{{if .IsPrivate}}
89-
{{svg "octicon-lock" 16 "tw-mr-1 iconFloat text gold"}}
89+
{{svg "octicon-lock" 16 "text gold"}}
9090
{{else if .IsFork}}
91-
{{svg "octicon-repo-forked" 16 "tw-mr-1 iconFloat"}}
91+
{{svg "octicon-repo-forked"}}
9292
{{else if .IsMirror}}
93-
{{svg "octicon-mirror" 16 "tw-mr-1 iconFloat"}}
93+
{{svg "octicon-mirror"}}
9494
{{else if .IsTemplate}}
95-
{{svg "octicon-repo-template" 16 "tw-mr-1 iconFloat"}}
95+
{{svg "octicon-repo-template"}}
9696
{{else}}
97-
{{svg "octicon-repo" 16 "tw-mr-1 iconFloat"}}
97+
{{svg "octicon-repo"}}
9898
{{end}}
9999
<a class="name" href="{{.Link}}">{{.OwnerName}}/{{.Name}}</a>
100100
<span>{{FileSize .Size}}</span>

web_src/css/user.css

-4
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@
7777
padding-bottom: 5px;
7878
}
7979

80-
.user.settings .iconFloat {
81-
float: left;
82-
}
83-
8480
.user-orgs {
8581
display: flex;
8682
flex-flow: row wrap;

0 commit comments

Comments
 (0)