mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-29 21:53:53 +00:00
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:
parent
6202f9c0f1
commit
a07c68cd2f
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue