diff --git a/public/ng/css/gogs.css b/public/ng/css/gogs.css index f10eb788cb..8e5b590c00 100644 --- a/public/ng/css/gogs.css +++ b/public/ng/css/gogs.css @@ -2228,8 +2228,7 @@ textarea#issue-add-content { margin-left: 240px; } .profile-avatar { - width: 200px; - height: 200px; + width: 100%; border-radius: 6px; } #profile-name { @@ -2243,7 +2242,6 @@ textarea#issue-add-content { font-weight: bold; } .profile-info { - padding: 0 50px; font-size: 14px; } .profile-info ul { @@ -2280,3 +2278,6 @@ textarea#issue-add-content { #profile-header li .current { border-bottom: 2px solid #D26911; } +#profile-body { + margin-left: 10px; +} diff --git a/public/ng/less/gogs/profile.less b/public/ng/less/gogs/profile.less index f618d2606b..ae0a2b2201 100644 --- a/public/ng/less/gogs/profile.less +++ b/public/ng/less/gogs/profile.less @@ -1,6 +1,5 @@ .profile-avatar { - width: 200px; - height: 200px; + width: 100%; border-radius: 6px; } #profile-name { @@ -14,7 +13,7 @@ font-weight: bold; } .profile-info { - padding: 0 50px; + // padding: 0 50px; font-size: 14px; ul { padding-bottom: 10px; @@ -54,4 +53,7 @@ border-bottom: 2px solid #D26911; } } +} +#profile-body { + margin-left: 10px; } \ No newline at end of file diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 62fe4c5d9b..af3d11a034 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -2,12 +2,12 @@ {{template "ng/base/header" .}}
-
-
+
+
-
+
{{if .Owner.FullName}}{{.Owner.FullName}}
{{end}} {{.Owner.Name}}
@@ -50,40 +50,42 @@
-
- -
- {{if eq .TabName "activity"}} -
-
- {{template "user/dashboard/feeds" .}} -
- {{else}} -
-
- {{range .Repos}} - {{if not .IsPrivate}} -
-
    -
  • {{.NumStars}}
  • -
  • {{.NumForks}}
  • -
-

{{.Name}}

-

{{.Description}}

-

{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}

-
- {{end}} - {{end}} +
+
+ +
+ {{if eq .TabName "activity"}} +
+
+ {{template "user/dashboard/feeds" .}}
+ {{else}} +
+
+ {{range .Repos}} + {{if not .IsPrivate}} +
+
    +
  • {{.NumStars}}
  • +
  • {{.NumForks}}
  • +
+

{{.Name}}

+

{{.Description}}

+

{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}

+
+ {{end}} + {{end}} +
+
+ {{end}}
- {{end}}