From 21d496364a5e654ba535d06269f6c6679b5c2d74 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 10 Nov 2020 19:28:07 +0100 Subject: Fix tooltips and issue dependency styles (#13458) - Convert all tooltips to JS-based ones, fixing overflow issues - Restyle issue dependencies/dependants - Move popup styles to base style - CSS Helper tweaks - Unify pseudo element selectors and lint for it Fixes: https://github.com/go-gitea/gitea/issues/13400 --- templates/admin/user/edit.tmpl | 2 +- templates/repo/commits_table.tmpl | 2 +- templates/repo/create.tmpl | 2 +- templates/repo/issue/view_content/sidebar.tmpl | 64 ++++++++++++++------------ templates/repo/release/list.tmpl | 4 +- templates/repo/view_file.tmpl | 2 +- 6 files changed, 41 insertions(+), 35 deletions(-) (limited to 'templates') diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index a0edd68e48..e29b18f5be 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -90,7 +90,7 @@
-
+
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 89355f0653..623df6f63e 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -17,7 +17,7 @@
- + {{else if .IsDiffCompare}} {{if not .BaseIsCommit}}{{if .BaseIsBranch}}{{svg "octicon-git-branch"}}{{else if .BaseIsTag}}{{svg "octicon-tag"}}{{end}}{{.BaseBranch}}{{else}}{{ShortSha .BaseBranch}}{{end}} diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 6b9a2bca36..39759bcc4c 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -73,7 +73,7 @@
-
+
diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index dad4f7e125..4165ba49e6 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -434,32 +434,35 @@ {{if (and (not .BlockedByDependencies) (not .BlockingDependencies))}} {{.i18n.Tr "repo.issues.dependency.title"}}
-

{{if .Issue.IsPull}} +

+ {{if .Issue.IsPull}} {{.i18n.Tr "repo.issues.dependency.pr_no_dependencies"}} {{else}} {{.i18n.Tr "repo.issues.dependency.issue_no_dependencies"}} - {{end}}

+ {{end}} +

{{end}} {{if .BlockingDependencies}} - - {{.i18n.Tr "repo.issues.dependency.blocks_short"}} + + {{.i18n.Tr "repo.issues.dependency.blocks_short"}}
{{range .BlockingDependencies}} -
- #{{.Issue.Index}} - {{.Issue.Title | RenderEmoji}} -
{{.Repository.OwnerName}}/{{.Repository.Name}}
-
+
+
+ + #{{.Issue.Index}} {{.Issue.Title | RenderEmoji}} + +
+ {{.Repository.OwnerName}}/{{.Repository.Name}} +
+
+
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} - - + + {{svg "octicon-trashcan" 16}} {{end}}
@@ -469,24 +472,25 @@ {{end}} {{if .BlockedByDependencies}} - - {{.i18n.Tr "repo.issues.dependency.blocked_by_short"}} + + {{.i18n.Tr "repo.issues.dependency.blocked_by_short"}}
{{range .BlockedByDependencies}} -
- #{{.Issue.Index}} - {{.Issue.Title | RenderEmoji}} -
{{.Repository.OwnerName}}/{{.Repository.Name}}
-
+
+
+ + #{{.Issue.Index}} {{.Issue.Title | RenderEmoji}} + +
+ {{.Repository.OwnerName}}/{{.Repository.Name}} +
+
+
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} - - + + {{svg "octicon-trashcan" 16}} {{end}}
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 71d40fdb23..a05d671b15 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -152,7 +152,9 @@ {{if .Attachments}} {{range .Attachments}}
  • - {{svg "octicon-info"}} + + {{svg "octicon-info"}} + {{svg "octicon-package" 16 "mr-2"}}{{.Name}} {{.Size | FileSize}} diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index a849fa1f84..2ad31f8c37 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -22,7 +22,7 @@
  • {{end}} {{if .LFSLock}} -
    +
    {{svg "octicon-lock" 16 "mr-2"}} {{.LFSLockOwner}}
    -- cgit v1.2.3