Skip to content

Commit

Permalink
Optimize repo-list layout to enhance visual experience (go-gitea#31272)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Co-authored-by: Giteabot <[email protected]>
  • Loading branch information
3 people committed Jun 6, 2024
1 parent c07416b commit e2137bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 6 additions & 6 deletions templates/user/settings/repos.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@
<div class="ui middle aligned divided list">
{{range .Repos}}
<div class="item">
<div class="content">
<div class="content flex-text-block">
{{if .IsPrivate}}
{{svg "octicon-lock" 16 "tw-mr-1 iconFloat text gold"}}
{{svg "octicon-lock" 16 "text gold"}}
{{else if .IsFork}}
{{svg "octicon-repo-forked" 16 "tw-mr-1 iconFloat"}}
{{svg "octicon-repo-forked"}}
{{else if .IsMirror}}
{{svg "octicon-mirror" 16 "tw-mr-1 iconFloat"}}
{{svg "octicon-mirror"}}
{{else if .IsTemplate}}
{{svg "octicon-repo-template" 16 "tw-mr-1 iconFloat"}}
{{svg "octicon-repo-template"}}
{{else}}
{{svg "octicon-repo" 16 "tw-mr-1 iconFloat"}}
{{svg "octicon-repo"}}
{{end}}
<a class="name" href="{{.Link}}">{{.OwnerName}}/{{.Name}}</a>
<span>{{FileSize .Size}}</span>
Expand Down
4 changes: 0 additions & 4 deletions web_src/css/user.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@
padding-bottom: 5px;
}

.user.settings .iconFloat {
float: left;
}

.user-orgs {
display: flex;
flex-flow: row wrap;
Expand Down

0 comments on commit e2137bb

Please sign in to comment.