diff options
author | Giteabot <teabot@gitea.io> | 2023-06-19 14:14:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-19 18:14:31 +0000 |
commit | e9105ac281f8671142fdf74e46b45e6524c63e0a (patch) | |
tree | 2bfe1196baeed45e3c3f6ed3c9cc0f87ca2a4d04 /web_src/js | |
parent | e6e1cfd8e49783d6484cd4d86b0030f35aeb04de (diff) | |
download | gitea-e9105ac281f8671142fdf74e46b45e6524c63e0a.tar.gz gitea-e9105ac281f8671142fdf74e46b45e6524c63e0a.zip |
Fix label list divider (#25312) (#25372)
Backport #25312 by @wxiaoguang
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)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/features/repo-issue.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js index 0dc5728f58..33d2112d5b 100644 --- a/web_src/js/features/repo-issue.js +++ b/web_src/js/features/repo-issue.js @@ -149,6 +149,7 @@ export function initRepoIssueSidebarList() { } } }); + $('.ui.dropdown.label-filter').dropdown('setting', {'hideDividers': 'empty'}).dropdown('refreshItems'); } export function initRepoIssueCommentDelete() { |