increased sha button size

- added badge alongside shabox in mobile view
- shabox badge will only be visible above >= 400px
- increased label button size

Signed-off-by: iamyaash <iamyaash@outlook.com>
This commit is contained in:
iamyaash 2025-08-04 14:26:06 +05:30
commit a07c68cd2f
2 changed files with 5 additions and 1 deletions

View file

@ -86,8 +86,9 @@
{{end}}
{{$commitShaLink := (printf "%s/pulls/%d/commits/%s" $commitRepoLink $.Issue.Index (PathEscape .ID.String))}}
<button data-clipboard-text="{{.ID}}" class="{{$class}}">
<span class="tw-ml-2">{{svg "octicon-copy"}} {{ctx.Locale.Tr "copy"}}</span>
<span class="tw-m-2">{{svg "octicon-copy" 18}} {{ctx.Locale.Tr "copy"}}</span>
<span class="shortsha">{{ShortSha .ID.String}}</span>
<span class="badge">{{if .Signature}}{{template "repo/shabox_badge" dict "root" $ "verification" .Verification}}{{end}}</span>
</button>
</div>

View file

@ -2780,6 +2780,9 @@ tbody.commit-list {
.mobile-shabox {display: none;} /*hiding the button in desktop view, only accessible in mobile view*/
.mobile-btn {display: none;}
}
@media (max-width: 440px) {
.commit-timeline .mobile-shabox .badge {display: none;}
}
@media (max-width: 640px) {
.commit-timeline {