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](74989996-fcea-4df4-b534-b06f7957939a)


![image](ee3b3761-b96e-4fb5-b646-e9d3117e5f40)
This commit is contained in:
wxiaoguang 2023-06-19 01:33:12 +08:00 committed by GitHub
parent a5d0246fff
commit bfab129fb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -149,6 +149,7 @@ export function initRepoIssueSidebarList() {
}
}
});
$('.ui.dropdown.label-filter').dropdown('setting', {'hideDividers': 'empty'}).dropdown('refreshItems');
}
export function initRepoIssueCommentDelete() {