-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Scoped label display improvements #23164
Conversation
I tried to make labels not overflow like #23146, however I had trouble figuring out how to both make it break words within the left and right part, while still ensuring the left and right part don't break apart |
9f0f29a
to
bc7a351
Compare
It seems preferable to be consistent with #23146 if we can and use word-break? Though I have not succeeded in getting that to work. I did make a change to
|
Thanks for the comparison screenshots. I do also prefer it with inline-flex. LGTM ❤️ |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #23164 +/- ##
==========================================
+ Coverage 47.39% 47.56% +0.16%
==========================================
Files 1143 1143
Lines 151093 151171 +78
==========================================
+ Hits 71617 71909 +292
+ Misses 71035 70757 -278
- Partials 8441 8505 +64
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Do you mean this? https://jsfiddle.net/L2o0kq3n/ ps: the |
I updated my comment above to show what it looks like with I think this PR is a net improvement over the current state which also does not stop label overflow, so maybe it's good enough to merge?
Not really, this doesn't look that good to me for cases like Status in my example. But it's a matter of taste also.
It cuts off the text on both sides. To me that behavior seems not useful either. If you see this you probably rename the label to something else to make it readable. |
Still seems enough, and decreases probability of ending up with difficult to read text and background color combination.
Looks like the first item should be marked as a break change? |
Maybe not that breaking (how? I can not imagine ...), we can consider it as improvement? Update: I see the breaking now. Some people just want to use literal labels like "N/A" without scope. |
I updated the description to notify about the breaking change, assuming we are ok with this. |
Thanks! Then maybe we also need to mention that the column of |
I updated the description to try to make that more explicit, but I'm not sure I understood exactly what you are asking. |
Can the repository choose to enable this feature? It would be better if users could choose whether to enable this feature in the repository. |
I mean maybe the description in |
I don't think we are ready to add an option for repository, maybe depend on #22500 |
I think we can add a setting to this in app.ini (global) and the repo settings. |
Sorry I am strongly discouraged from doing this since using |
We are getting severely offtopic for this PR but:I don't quite understand why anyone would need a global or even repo-specific configuration to enable or disable this feature. |
I'm sorry since the discussion in #22974 doesn't stop this from happening, so I left a comment to let people know the concern of the breaking change.
The existing change is fine to me and I'm okay if we don't plan to switch to use another delimiter in database, but If you are doing this, remove the |
No. This PR will break this behaviour. Even exclusive=false,
|
I can see a possible approach to avoid the breaking, introduce a label property like I think some people may want to use "N/A" , "mac/win" or "c/java" for labels without scope. For label
Or just change the For label
(Just a brief thought ....) |
Hmm… Looks like we should postpone merging this PR as it is for now. |
I'll close this one and create a new PR with an enum for scoped labels later. |
/
. This means the Exclusive option no longer affects the label display, only the behavior when assigning labels.Existing labels with a
/
character in the name are now displayed as a scoped label. These labels are not mutually exclusive by default. If the/
character was used for another purpose, the label name can be changed to use another character or word.Part of #22974