summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMike L <cl.jeremy@qq.com>2021-02-25 13:35:43 +0100
committerGitHub <noreply@github.com>2021-02-25 13:35:43 +0100
commit4172b1955fabe79e5918145f4ad1b00911390de0 (patch)
tree2b84b1f01fdfabbfbeb7ccc586b6835126e71030 /templates
parent8f4d55452a0a15b3af5d308ccef74b85d7c22422 (diff)
downloadgitea-4172b1955fabe79e5918145f4ad1b00911390de0.tar.gz
gitea-4172b1955fabe79e5918145f4ad1b00911390de0.zip
Fix dashboard UI bugs and more (#14767)
This PR fixes a few UI bugs I spontaneously encountered: - Fixes emojis in repo titles getting head-cut and tail-cut in dashboard feed due to introduction of 1.25 em emojis at 1 em line-height, by simply using the original 1 3/7 em value of `semantic.css` - Fixes regression (too long repo names should be capped to 70%) in #13828 due to flex children not respecting properties like `overflow: hidden;`, and removes a block of dead style code - Follow-up to #14761, removes extraneous code for top navbar and correct right margin for Font Awesome - Fixes color emphasis inversion in arc-green theme for top right buttons (edit, delete) on commit view boxes
Diffstat (limited to 'templates')
-rw-r--r--templates/base/head_navbar.tmpl2
-rw-r--r--templates/user/dashboard/repolist.tmpl8
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl
index efab76f33c..def83d9726 100644
--- a/templates/base/head_navbar.tmpl
+++ b/templates/base/head_navbar.tmpl
@@ -173,7 +173,7 @@
<div class="divider"></div>
<a class="{{if .PageIsAdmin}}active{{end}} item" href="{{AppSubUrl}}/admin">
- <i class="icon settings"></i>
+ {{svg "octicon-server"}}
{{.i18n.Tr "admin_panel"}}<!-- Admin Panel -->
</a>
{{end}}
diff --git a/templates/user/dashboard/repolist.tmpl b/templates/user/dashboard/repolist.tmpl
index 9115c62ecd..1f619ea833 100644
--- a/templates/user/dashboard/repolist.tmpl
+++ b/templates/user/dashboard/repolist.tmpl
@@ -123,9 +123,9 @@
<ul class="repo-owner-name-list">
<li v-for="repo in repos" :class="{'private': repo.private || repo.internal}">
<a class="repo-list-link df ac sb" :href="suburl + '/' + repo.full_name">
- <div class="f1">
+ <div class="text truncate item-name f1">
<component v-bind:is="repoIcon(repo)" size="16"></component>
- <strong class="text truncate item-name">${repo.full_name}</strong>
+ <strong>${repo.full_name}</strong>
<span v-if="repo.archived">
{{svg "octicon-archive" 16 "ml-2"}}
</span>
@@ -175,9 +175,9 @@
<ul class="repo-owner-name-list">
<li v-for="org in organizations">
<a class="repo-list-link df ac sb" :href="suburl + '/' + org.name">
- <div class="f1">
+ <div class="text truncate item-name f1">
{{svg "octicon-organization" 16 "mr-2"}}
- <strong class="text truncate item-name">${org.name}</strong>
+ <strong>${org.name}</strong>
</div>
<div class="text light grey df ac">
${org.num_repos}