Skip to content

Add copy Commit ID button in commits list #17759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Nov 23, 2021
1 change: 1 addition & 0 deletions templates/repo/commits_list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
{{else}}
<span class="{{$class}}">
{{end}}
<span data-clipboard-text="{{.ID}}">{{svg "octicon-copy"}}</span>
<span class="shortsha">{{ShortSha .ID.String}}</span>
{{if .Signature}}
{{template "repo/shabox_badge" dict "root" $ "verification" .Verification}}
Expand Down
2 changes: 1 addition & 1 deletion web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@
text-align: center;
}

width: 175px;
width: 200px;
}
}

Expand Down