File tree Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 38
38
</div>
39
39
</div>
40
40
{{if not (or .IsBeingCreated .IsBroken)}}
41
- <div class="repo-buttons">
41
+ <div class="flex-text-block repo-buttons">
42
42
{{if $.RepoTransfer}}
43
43
<form method="post" action="{{$.RepoLink}}/action/accept_transfer?redirect_to={{$.RepoLink}}">
44
44
{{$.CsrfTokenHtml}}
45
- <div data-tooltip-content="{{if $.CanUserAcceptOrRejectTransfer}}{{ctx.Locale.Tr "repo.transfer.accept_desc" $.RepoTransfer.Recipient.DisplayName}}{{else}}{{ctx.Locale.Tr "repo.transfer.no_permission_to_accept"}}{{end}}">
46
- <button type="submit" class="ui basic button {{if $.CanUserAcceptOrRejectTransfer}}primary {{end}} ok small"{{if not $.CanUserAcceptOrRejectTransfer}} disabled{{end}}>
45
+ <div class="flex-text-inline" data-tooltip-content="{{if $.CanUserAcceptOrRejectTransfer}}{{ctx.Locale.Tr "repo.transfer.accept_desc" $.RepoTransfer.Recipient.DisplayName}}{{else}}{{ctx.Locale.Tr "repo.transfer.no_permission_to_accept"}}{{end}}">
46
+ <button type="submit" class="ui compact small basic button {{if $.CanUserAcceptOrRejectTransfer}}primary {{end}} ok small"{{if not $.CanUserAcceptOrRejectTransfer}} disabled{{end}}>
47
47
{{ctx.Locale.Tr "repo.transfer.accept"}}
48
48
</button>
49
49
</div>
50
50
</form>
51
51
<form method="post" action="{{$.RepoLink}}/action/reject_transfer?redirect_to={{$.RepoLink}}">
52
52
{{$.CsrfTokenHtml}}
53
- <div data-tooltip-content="{{if $.CanUserAcceptOrRejectTransfer}}{{ctx.Locale.Tr "repo.transfer.reject_desc" $.RepoTransfer.Recipient.DisplayName}}{{else}}{{ctx.Locale.Tr "repo.transfer.no_permission_to_reject"}}{{end}}">
54
- <button type="submit" class="ui basic button {{if $.CanUserAcceptOrRejectTransfer}}red {{end}}ok small"{{if not $.CanUserAcceptOrRejectTransfer}} disabled{{end}}>
53
+ <div class="flex-text-inline" data-tooltip-content="{{if $.CanUserAcceptOrRejectTransfer}}{{ctx.Locale.Tr "repo.transfer.reject_desc" $.RepoTransfer.Recipient.DisplayName}}{{else}}{{ctx.Locale.Tr "repo.transfer.no_permission_to_reject"}}{{end}}">
54
+ <button type="submit" class="ui compact small basic button {{if $.CanUserAcceptOrRejectTransfer}}red {{end}}ok small"{{if not $.CanUserAcceptOrRejectTransfer}} disabled{{end}}>
55
55
{{ctx.Locale.Tr "repo.transfer.reject"}}
56
56
</button>
57
57
</div>
Original file line number Diff line number Diff line change 2
2
{{$canReadCode := $.Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
3
3
4
4
{{if $canReadReleases}}
5
- <div class="tw- flex">
5
+ <div class="flex-text-block ">
6
6
<div class="tw-flex-1 tw-flex tw-items-center">
7
7
<h2 class="ui compact small menu small-menu-items">
8
8
<a class="{{if and .PageIsReleaseList (not .PageIsSingleTag)}}active {{end}}item" href="{{.RepoLink}}/releases">{{ctx.Locale.PrettyNumber .NumReleases}} {{ctx.Locale.TrN .NumReleases "repo.release" "repo.releases"}}</a>
Original file line number Diff line number Diff line change 1
- <form hx-boost="true" hx-target="this" method="post" action="{{$.RepoLink}}/action/{{if $.IsStaringRepo}}unstar{{else}}star{{end}}">
1
+ <form class="flex-text-inline" hx-boost="true" hx-target="this" method="post" action="{{$.RepoLink}}/action/{{if $.IsStaringRepo}}unstar{{else}}star{{end}}">
2
2
<div class="ui labeled button" {{if not $.IsSigned}}data-tooltip-content="{{ctx.Locale.Tr "repo.star_guest_user"}}"{{end}}>
3
3
{{$buttonText := ctx.Locale.Tr "repo.star"}}
4
4
{{if $.IsStaringRepo}}{{$buttonText = ctx.Locale.Tr "repo.unstar"}}{{end}}
Original file line number Diff line number Diff line change 1
- <form hx-boost="true" hx-target="this" method="post" action="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}unwatch{{else}}watch{{end}}">
1
+ <form class="flex-text-inline" hx-boost="true" hx-target="this" method="post" action="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}unwatch{{else}}watch{{end}}">
2
2
<div class="ui labeled button" {{if not $.IsSigned}}data-tooltip-content="{{ctx.Locale.Tr "repo.watch_guest_user"}}"{{end}}>
3
3
{{$buttonText := ctx.Locale.Tr "repo.watch"}}
4
4
{{if $.IsWatchingRepo}}{{$buttonText = ctx.Locale.Tr "repo.unwatch"}}{{end}}
Original file line number Diff line number Diff line change 29
29
}
30
30
31
31
.repo-buttons {
32
- align-items : center;
33
- display : flex;
34
32
flex-flow : row wrap;
35
33
word-break : keep-all;
36
- gap : 0.25em ;
34
+ }
35
+
36
+ .repo-buttons button {
37
+ /* ensure that text-btn and svg-text-btn have consistent height. */
38
+ line-height : 16px !important ;
37
39
}
38
40
39
41
.repo-buttons button [disabled ] ~ .label {
You can’t perform that action at this time.
0 commit comments