Skip to content

Commit 72f37fc

Browse files
committed
fix
1 parent 6e475dc commit 72f37fc

21 files changed

+179
-144
lines changed

templates/repo/diff/box.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{$showFileTree := (and (not .DiffNotAvailable) (gt .Diff.NumFiles 1))}}
22
<div>
3-
<div class="diff-detail-box diff-box">
3+
<div class="diff-detail-box">
44
<div class="tw-flex tw-items-center tw-flex-wrap tw-gap-2 tw-ml-0.5">
55
{{if $showFileTree}}
66
<button class="diff-toggle-file-tree-button not-mobile btn interact-fg" data-show-text="{{ctx.Locale.Tr "repo.diff.show_file_tree"}}" data-hide-text="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}">
@@ -80,7 +80,7 @@
8080
{{$showFileViewToggle := or $isImage (and (not $file.IsIncomplete) $isCsv)}}
8181
{{$isExpandable := or (gt $file.Addition 0) (gt $file.Deletion 0) $file.IsBin}}
8282
{{$isReviewFile := and $.IsSigned $.PageIsPullFiles (not $.Repository.IsArchived) $.IsShowingAllCommits}}
83-
<div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}} tw-mt-0" id="diff-{{$file.NameHash}}" data-old-filename="{{$file.OldName}}" data-new-filename="{{$file.Name}}" {{if or ($file.ShouldBeHidden) (not $isExpandable)}}data-folded="true"{{end}}>
83+
<div class="diff-file-box file-content {{TabSizeClass $.Editorconfig $file.Name}} tw-mt-0" id="diff-{{$file.NameHash}}" data-old-filename="{{$file.OldName}}" data-new-filename="{{$file.Name}}" {{if or ($file.ShouldBeHidden) (not $isExpandable)}}data-folded="true"{{end}}>
8484
<h4 class="diff-file-header sticky-2nd-row ui top attached header">
8585
<div class="diff-file-name tw-flex tw-flex-1 tw-items-center tw-gap-1 tw-flex-wrap">
8686
<button class="fold-file btn interact-bg tw-p-1{{if not $isExpandable}} tw-invisible{{end}}">
@@ -209,7 +209,7 @@
209209
{{end}}
210210

211211
{{if .Diff.IsIncomplete}}
212-
<div class="diff-file-box diff-box file-content tw-mt-2" id="diff-incomplete">
212+
<div class="diff-file-box file-content tw-mt-2" id="diff-incomplete">
213213
<h4 class="ui top attached header tw-font-normal tw-flex tw-items-center tw-justify-between">
214214
{{ctx.Locale.Tr "repo.diff.too_many_files"}}
215215
<a class="ui basic tiny button" id="diff-show-more-files" data-href="?skip-to={{.Diff.End}}&file-only=true">{{ctx.Locale.Tr "repo.diff.show_more"}}</a>

templates/repo/graph.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<h2 class="ui header dividing">
77
{{ctx.Locale.Tr "repo.commit_graph"}}
88
<div class="ui icon buttons tiny color-buttons">
9-
<div class="ui multiple selection search dropdown" id="flow-select-refs-dropdown">
9+
<div class="ui multiple selection search dropdown custom" id="flow-select-refs-dropdown">
1010
<input type="hidden" name="flow">
1111
<div class="default text">{{ctx.Locale.Tr "repo.commit_graph.select"}}</div>
1212
<div class="menu">

templates/repo/home_sidebar_top.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}
3030
<button id="manage_topic" class="btn interact-fg tw-mb-2 tw-text-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>
3131
<div class="ui form tw-hidden tw-my-2" id="topic_edit">
32-
<div class="ui fluid multiple search selection dropdown tw-flex-wrap tw-flex-1">
32+
<div class="ui fluid multiple search selection dropdown custom tw-flex-wrap tw-flex-1">
3333
<input type="hidden" name="topics" value="{{range $i, $v := .Topics}}{{.Name}}{{if Eval $i "+" 1 "<" (len $.Topics)}},{{end}}{{end}}">
3434
{{range .Topics}}
3535
{{/* keep the same layout as Fomantic UI generated labels */}}

templates/repo/issue/sidebar/issue_dependencies.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
<form method="post" action="{{.Issue.Link}}/dependency/add" id="addDependencyForm">
107107
{{$.CsrfTokenHtml}}
108108
<div class="ui fluid action input">
109-
<div class="ui search selection dropdown" id="new-dependency-drop-list" data-issue-id="{{.Issue.ID}}">
109+
<div class="ui search selection dropdown custom" id="new-dependency-drop-list" data-issue-id="{{.Issue.ID}}">
110110
<input name="newDependency" type="hidden">
111111
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
112112
<input type="text" class="search">

templates/repo/issue/view_content/add_reaction.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<a class="muted">{{svg "octicon-smiley"}}</a>
44
<div class="menu">
55
{{range $value := AllowedReactions}}
6-
<a class="item emoji comment-reaction-button" data-tooltip-content="{{$value}}" aria-label="{{$value}}" data-reaction-content="{{$value}}">{{ReactionToEmoji $value}}</a>
6+
<a class="item emoji" data-tooltip-content="{{$value}}" aria-label="{{$value}}" data-reaction-content="{{$value}}" data-global-click="onCommentReactionButtonClick">{{ReactionToEmoji $value}}</a>
77
{{end}}
88
</div>
99
</div>

templates/repo/issue/view_content/conversation.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
{{if $diff}}
4141
{{$file := (index $diff.Files 0)}}
4242
<div id="code-preview-{{$comment.ID}}" class="ui table segment{{if $resolved}} tw-hidden{{end}}">
43-
<div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}}">
43+
<div class="diff-file-box file-content {{TabSizeClass $.Editorconfig $file.Name}}">
4444
<div class="file-body file-code code-view code-diff code-diff-unified unicode-escaped">
4545
<table>
4646
<tbody>

templates/repo/issue/view_content/reactions.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<div class="bottom-reactions" data-action-url="{{$.ActionURL}}">
22
{{range $key, $value := .Reactions}}
33
{{$hasReacted := $value.HasUser ctx.RootData.SignedUserID}}
4-
<a role="button" class="ui label basic{{if $hasReacted}} primary{{end}}{{if not ctx.RootData.IsSigned}} disabled{{end}} comment-reaction-button"
5-
data-tooltip-content
6-
title="{{$value.GetFirstUsers}}{{if gt ($value.GetMoreUserCount) 0}} {{ctx.Locale.Tr "repo.reactions_more" $value.GetMoreUserCount}}{{end}}"
4+
<a role="button" class="ui label basic{{if $hasReacted}} primary{{end}}{{if not ctx.RootData.IsSigned}} disabled{{end}}"
5+
data-global-click="onCommentReactionButtonClick"
6+
data-tooltip-content title="{{$value.GetFirstUsers}}{{if gt ($value.GetMoreUserCount) 0}} {{ctx.Locale.Tr "repo.reactions_more" $value.GetMoreUserCount}}{{end}}"
77
aria-label="{{$value.GetFirstUsers}}{{if gt ($value.GetMoreUserCount) 0}} {{ctx.Locale.Tr "repo.reactions_more" $value.GetMoreUserCount}}{{end}}"
88
data-tooltip-placement="bottom-start"
99
data-reaction-content="{{$key}}" data-has-reacted="{{$hasReacted}}">

templates/repo/issue/view_content/reference_issue_dialog.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{.CsrfTokenHtml}}
88
<div class="field">
99
<label><strong>{{ctx.Locale.Tr "repository"}}</strong></label>
10-
<div class="ui search selection dropdown issue_reference_repository_search ellipsis-items-nowrap">
10+
<div class="ui search selection dropdown issue_reference_repository_search custom ellipsis-items-nowrap">
1111
<div class="default text gt-ellipsis">{{.Repository.FullName}}</div>
1212
<div class="menu"></div>
1313
</div>

templates/repo/issue/view_content/update_branch_by_merge.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{{ctx.Locale.Tr "repo.pulls.update_branch"}}
1515
</span>
1616
</button>
17-
<div class="ui dropdown icon button">
17+
<div class="ui dropdown icon button custom">
1818
{{svg "octicon-triangle-down"}}
1919
<div class="menu">
2020
<a class="item active selected" data-do="{{$.Link}}/update">{{ctx.Locale.Tr "repo.pulls.update_branch"}}</a>

templates/shared/search/code/results.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div class="repository search">
1212
{{range $result := .SearchResults}}
1313
{{$repo := or $.Repo (index $.RepoMaps .RepoID)}}
14-
<div class="diff-file-box diff-box file-content non-diff-file-content repo-search-result">
14+
<div class="diff-file-box file-content non-diff-file-content repo-search-result">
1515
<h4 class="ui top attached header tw-font-normal tw-flex tw-flex-wrap">
1616
{{if not $.Repo}}
1717
<span class="file tw-flex-1">

0 commit comments

Comments
 (0)