loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix label list divider (#25312)

We only needs 2 lines to hide the dividers.

```
$dropdownLabelFilter.dropdown('setting', {'hideDividers': 'empty'});
$dropdownLabelFilter.dropdown('refreshItems');
```

Other code blocks are refactored by the way.


![image](https://github.com/go-gitea/gitea/assets/2114189/74989996-fcea-4df4-b534-b06f7957939a)


![image](https://github.com/go-gitea/gitea/assets/2114189/ee3b3761-b96e-4fb5-b646-e9d3117e5f40)

authored by

wxiaoguang and committed by
GitHub
bfab129f a5d0246f

+3 -2
+2 -1
templates/repo/issue/list.tmpl
··· 102 102 <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_label"}}"> 103 103 </div> 104 104 <span class="info">{{.locale.Tr "repo.issues.filter_label_exclude" | Safe}}</span> 105 + <div class="ui divider"></div> 105 106 <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels=0&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_label_select_no_label"}}</a> 106 107 <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_label_no_select"}}</a> 107 108 {{$previousExclusiveScope := "_no_scope"}} 108 109 {{range .Labels}} 109 110 {{$exclusiveScope := .ExclusiveScope}} 110 - {{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}} 111 + {{if and (ne $previousExclusiveScope $exclusiveScope)}} 111 112 <div class="ui divider"></div> 112 113 {{end}} 113 114 {{$previousExclusiveScope = $exclusiveScope}}
-1
web_src/css/repo.css
··· 149 149 .repository .filter.menu.labels .label-filter .menu .info { 150 150 display: inline-block; 151 151 padding: 0.5rem 0.25rem; 152 - border-bottom: 1px solid var(--color-secondary); 153 152 font-size: 12px; 154 153 width: 100%; 155 154 white-space: nowrap;
+1
web_src/js/features/repo-issue.js
··· 149 149 } 150 150 } 151 151 }); 152 + $('.ui.dropdown.label-filter').dropdown('setting', {'hideDividers': 'empty'}).dropdown('refreshItems'); 152 153 } 153 154 154 155 export function initRepoIssueCommentDelete() {