-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix: Hide divider when labels are hidden #27668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -38,7 +38,9 @@ | |||
{{range .Labels}} | |||
{{$exclusiveScope := .ExclusiveScope}} | |||
{{if and (ne $previousExclusiveScope $exclusiveScope)}} | |||
<div class="divider"></div> | |||
{{if or (not .IsArchived) (and .IsArchived $.ShowArchivedLabels)}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only a partial fix as it will be buggy when you have a scope with an archived label and an active label, and the checkbox is not selected.
In that case, the divider will be missing even though it shouldn't.
quickest solution As of now lets remove all the divider tags. I am working on something similar, My fix will take lil more time, mean while we can fix it via this |
Erm… This sounds even worse? |
It should have been fixed in 1.23? |
Not fixed, and it is not an easy problem. The problem is that Frontend dropdown needs to "filter" the list. So it also needs to handle such case:
Actually the dropdown could already handles such case, but it is unable to mix these 2 different usages if item2 is hidden by other methods but not by the filter. |
It could be fixed like this: Fix duplicate dropdown dividers #32760 |
Summary
Empty dividers are shown with no enclosed labels when the archived labels are hidden from list
Before fix
The dividers will show on the list even if the enclosed labels are hidden
After the fix
The divider has been conditionally hidden when the label is not shown in the list
Fixed #27466