File tree Expand file tree Collapse file tree 12 files changed +43
-59
lines changed Expand file tree Collapse file tree 12 files changed +43
-59
lines changed Original file line number Diff line number Diff line change 8
8
{{$referenceUrl := printf "%s#%s" $.Issue.Link $comment.HashTag}}
9
9
<div class="conversation-holder" data-path="{{$comment.TreePath}}" data-side="{{if lt $comment.Line 0}}left{{else}}right{{end}}" data-idx="{{$comment.UnsignedLine}}">
10
10
{{if $resolved}}
11
- <div class="ui attached header resolved-placeholder tw-flex tw-items-center tw-justify-between ">
12
- <div class="ui grey text tw- flex tw-items-center tw-flex-wrap tw-gap-1 ">
13
- {{svg "octicon-check" 16 "icon tw-mr-1" }}
11
+ <div class="resolved-placeholder">
12
+ <div class="flex-text-block tw-flex-wrap grey text ">
13
+ {{svg "octicon-check"}}
14
14
<b>{{$resolveDoer.Name}}</b> {{ctx.Locale.Tr "repo.issues.review.resolved_by"}}
15
15
{{if $invalid}}
16
16
<!--
22
22
</a>
23
23
{{end}}
24
24
</div>
25
- <div class="tw-flex tw-items-center tw-gap-2">
26
- <button id="show-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="ui tiny labeled button show-outdated tw-flex tw-items-center">
27
- {{svg "octicon-unfold" 16 "tw-mr-2"}}
28
- {{ctx.Locale.Tr "repo.issues.review.show_resolved"}}
25
+ <div class="flex-text-block">
26
+ <button id="show-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="btn tiny show-outdated">
27
+ {{svg "octicon-unfold" 16 "tw-mr-2"}}{{ctx.Locale.Tr "repo.issues.review.show_resolved"}}
29
28
</button>
30
- <button id="hide-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="ui tiny labeled button hide-outdated tw-flex tw-items-center tw-hidden">
31
- {{svg "octicon-fold" 16 "tw-mr-2"}}
32
- {{ctx.Locale.Tr "repo.issues.review.hide_resolved"}}
29
+ <button id="hide-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="btn tiny hide-outdated tw-hidden">
30
+ {{svg "octicon-fold" 16 "tw-mr-2"}}{{ctx.Locale.Tr "repo.issues.review.hide_resolved"}}
33
31
</button>
34
32
</div>
35
33
</div>
Original file line number Diff line number Diff line change 17
17
</div>
18
18
<div>
19
19
{{if or $invalid $resolved}}
20
- <button id="show-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="{{if not $resolved}}tw-hidden {{end}}ui compact labeled button show-outdated tw-flex tw-items-center ">
20
+ <button id="show-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="{{if not $resolved}}tw-hidden{{end}} btn tiny show-outdated">
21
21
{{svg "octicon-unfold" 16 "tw-mr-2"}}
22
22
{{if $resolved}}
23
23
{{ctx.Locale.Tr "repo.issues.review.show_resolved"}}
24
24
{{else}}
25
25
{{ctx.Locale.Tr "repo.issues.review.show_outdated"}}
26
26
{{end}}
27
27
</button>
28
- <button id="hide-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="{{if $resolved}}tw-hidden {{end}}ui compact labeled button hide-outdated tw-flex tw-items-center ">
28
+ <button id="hide-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="{{if $resolved}}tw-hidden {{end}} btn tiny hide-outdated">
29
29
{{svg "octicon-fold" 16 "tw-mr-2"}}
30
30
{{if $resolved}}
31
31
{{ctx.Locale.Tr "repo.issues.review.hide_resolved"}}
Original file line number Diff line number Diff line change 3
3
{{template "repo/header" .}}
4
4
{{$title := .title}}
5
5
<div class="ui container">
6
- <div class="ui stackable grid ">
7
- <div class="ui eight wide column ">
8
- <div class="ui header" >
9
- <a class="file-revisions-btn ui basic button" title="{{ctx.Locale.Tr "repo.wiki.back_to_wiki"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}">{{if .revision}}<span>{{.revision}}</span> {{end}}{{svg "octicon-home"}}</a >
6
+ <div class="ui dividing header flex-text-block tw-flex-wrap tw-justify-between ">
7
+ <div class="flex-text-block ">
8
+ <a class="ui basic button tw-px-3" title="{{ctx.Locale.Tr "repo.wiki.back_to_wiki"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}">{{svg "octicon-home"}}</a >
9
+ <div class="tw-flex-1 gt-ellipsis" >
10
10
{{$title}}
11
- <div class="ui sub header tw-break-anywhere ">
11
+ <div class="ui sub header gt-ellipsis ">
12
12
{{$timeSince := DateUtils.TimeSince .Author.When}}
13
13
{{ctx.Locale.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince}}
14
14
</div>
15
15
</div>
16
16
</div>
17
- <div class="ui eight wide column tw-text-right" >
17
+ <div>
18
18
{{template "repo/clone_panel" .}}
19
19
</div>
20
20
</div>
Original file line number Diff line number Diff line change 33
33
<div class="ui dividing header">
34
34
<div class="flex-text-block tw-flex-wrap tw-justify-end">
35
35
<div class="flex-text-block tw-flex-1 tw-min-w-[300px]">
36
- <a class="file-revisions-btn ui basic button" title="{{ctx.Locale.Tr "repo.wiki.file_revision"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}?action=_revision" >{{if .CommitCount}}<span>{{.CommitCount}}</span> {{end}}{{svg "octicon-history"}}</a>
36
+ <a class="ui basic button tw-px-3 tw-gap-3 " title="{{ctx.Locale.Tr "repo.wiki.file_revision"}}" href="{{.RepoLink}}/wiki/{{.PageURL}}?action=_revision" >{{if .CommitCount}}<span>{{.CommitCount}}</span> {{end}}{{svg "octicon-history"}}</a>
37
37
<div class="tw-flex-1 gt-ellipsis">
38
38
{{$title}}
39
39
<div class="ui sub header gt-ellipsis">
Original file line number Diff line number Diff line change @@ -224,6 +224,7 @@ progress::-moz-progress-bar {
224
224
}
225
225
226
226
.unselectable ,
227
+ .btn ,
227
228
.button ,
228
229
.lines-num ,
229
230
.lines-commit ,
Original file line number Diff line number Diff line change 529
529
margin : 0 0.25em ;
530
530
}
531
531
532
- .file-revisions-btn {
533
- display : block;
534
- float : left;
535
- margin-bottom : 2px !important ;
536
- padding : 11px !important ;
537
- margin-right : 10px !important ;
538
- }
539
-
540
- .file-revisions-btn i {
541
- -webkit-touch-callout : none;
542
- -webkit-user-select : none;
543
- user-select : none;
544
- }
545
-
546
532
.markup-content-iframe {
547
533
display : block;
548
534
border : none;
Original file line number Diff line number Diff line change @@ -352,6 +352,14 @@ a.btn:hover {
352
352
color : inherit;
353
353
}
354
354
355
+ .btn .tiny {
356
+ font-size : 12px ;
357
+ }
358
+
359
+ .btn .small {
360
+ font-size : 13px ;
361
+ }
362
+
355
363
/* By default, Fomantic UI doesn't support "bordered" buttons group, but Gitea would like to use it.
356
364
And the default buttons always have borders now (not the same as Fomantic UI's default buttons, see above).
357
365
It needs some tricks to tweak the left/right borders with active state */
Original file line number Diff line number Diff line change 92
92
}
93
93
94
94
.tippy-box [data-theme = "menu" ] .item : focus {
95
+ background : var (--color-hover );
96
+ }
97
+
98
+ .tippy-box [data-theme = "menu" ] .item .active {
95
99
background : var (--color-active );
96
100
}
97
101
Original file line number Diff line number Diff line change @@ -1784,12 +1784,12 @@ tbody.commit-list {
1784
1784
.resolved-placeholder {
1785
1785
display : flex;
1786
1786
align-items : center;
1787
- font-size : 14 px !important ;
1788
- padding : 8 px !important ;
1789
- font-weight : var ( --font-weight-normal ) !important ;
1790
- border : 1px solid var (--color-secondary ) !important ;
1791
- border-radius : var (--border-radius ) !important ;
1792
- margin : 4 px !important ;
1787
+ justify-content : space-between ;
1788
+ margin : 4 px ;
1789
+ padding : 8 px ;
1790
+ border : 1px solid var (--color-secondary );
1791
+ border-radius : var (--border-radius );
1792
+ background : var ( --color-box-header ) ;
1793
1793
}
1794
1794
1795
1795
.resolved-placeholder + .comment-code-cloud {
Original file line number Diff line number Diff line change 1
- .show-outdated ,
2
- .hide-outdated {
3
- -webkit-touch-callout : none;
4
- -webkit-user-select : none;
5
- user-select : none;
6
- margin-right : 0 !important ;
7
- }
8
-
9
1
.ui .button .add-code-comment {
10
2
padding : 2px ;
11
3
position : absolute;
59
51
margin-bottom : 0.5em ;
60
52
}
61
53
62
- .show-outdated : hover ,
63
- .hide-outdated : hover {
64
- text-decoration : underline;
65
- }
66
-
67
54
.comment-code-cloud {
68
55
padding : 0.5rem 1rem !important ;
69
56
position : relative;
You can’t perform that action at this time.
0 commit comments