mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-01 06:56:38 +00:00
chore: fixed tooltip popup on octicon-file-code in redesigned commit layout
This commit is contained in:
parent
a2933b66db
commit
987d7ebb82
2 changed files with 16 additions and 6 deletions
|
@ -75,15 +75,25 @@
|
||||||
{{if .Committer}}{{DateUtils.TimeSince .Committer.When}}{{else}}{{DateUtils.TimeSince .Author.When}}{{end}}
|
{{if .Committer}}{{DateUtils.TimeSince .Committer.When}}{{else}}{{DateUtils.TimeSince .Author.When}}{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="">
|
<div>
|
||||||
<button class="btn interact-bg tw-p-2" data-tooltip-content="{{ctx.Locale.Tr "copy_hash"}}" data-clipboard-text="{{.ID}}">{{svg "octicon-copy"}}</button>
|
<button class="btn interact-bg tw-p-2" data-tooltip-content="{{ctx.Locale.Tr "copy_hash"}}" data-clipboard-text="{{.ID}}">{{svg "octicon-copy"}}</button>
|
||||||
{{if not $.PageIsWiki}}
|
{{if not $.PageIsWiki}}
|
||||||
{{if $.FileName}}
|
{{if $.FileName}}
|
||||||
<a class="btn interact-bg tw-p-2" href="{{printf "%s/commit/%s?files=%s" $commitRepoLink (PathEscape .ID.String) (PathEscapeSegments $.FileName)}}">{{svg "octicon-file-diff"}}</a>
|
<a
|
||||||
|
class="btn interact-bg tw-p-2"
|
||||||
|
rdata-tooltip-content="{{ctx.Locale.Tr "repo.commits.view_single_diff"}}"
|
||||||
|
href="{{printf "%s/commit/%s?files=%s" $commitRepoLink (PathEscape .ID.String) (PathEscapeSegments $.FileName)}}">
|
||||||
|
{{svg "octicon-file-diff"}}
|
||||||
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<a class="btn interact-bg tw-p-2" href="{{if $.FileName}}{{printf "%s/src/commit/%s/%s" $commitRepoLink (PathEscape .ID.String) (PathEscapeSegments $.FileName)}}{{else}}{{printf "%s/src/commit/%s" $commitRepoLink (PathEscape .ID.String)}}{{end}}">{{svg "octicon-file-code"}}</a>
|
<a
|
||||||
{{end}}
|
class="btn interact-bg tw-p-2"
|
||||||
</div>
|
data-tooltip-content="{{ctx.Locale.Tr "repo.commits.view_path"}}"
|
||||||
|
href="{{if $.FileName}}{{printf "%s/src/commit/%s/%s" $commitRepoLink (PathEscape .ID.String) (PathEscapeSegments $.FileName)}}{{else}}{{printf "%s/src/commit/%s" $commitRepoLink (PathEscape .ID.String)}}{{end}}">
|
||||||
|
{{svg "octicon-file-code"}}
|
||||||
|
</a>
|
||||||
|
{{end}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div></div> <!-- Final group close -->
|
</div></div> <!-- Final group close -->
|
||||||
|
|
|
@ -2783,6 +2783,6 @@ tbody.commit-list {
|
||||||
grid-template-columns: minmax(12ch, 100%) minmax(12ch,10%) auto minmax(10ch,40%) auto;
|
grid-template-columns: minmax(12ch, 100%) minmax(12ch,10%) auto minmax(10ch,40%) auto;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
column-gap: 0.5rem;
|
column-gap: 0.5rem;
|
||||||
|
.sha.label {display:none}
|
||||||
}
|
}
|
||||||
.sha.label {display:none}
|
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue