-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
Indent to distinguish resolved topics. #1124
Conversation
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.
@Rohitth007 This looks good, though it would be simpler with a separate API-specific addition for the resolved prefix.
My only other concern is that a long list of unresolved topics looks significantly indented - maybe more so with the text flowing closer to the right hand side.
ba845bb
to
96674eb
Compare
This commit indents all TopicButtons to make space for the resolved topic symbol and easily distinguish between them. A RESOLVED_TOPIC symbol has been added to api_types to be used for recognizing a resolved topic. To make topic name length the same as before, LEFT_WIDTH is increased by 2. This is equivalent to no difference in topic name length and 2 char gain in stream/special narrow buttons. Tests updated.
96674eb
to
68ded84
Compare
(1, 14, "topic2", "GSoC"), | ||
(1000, 205, "topic3", "PTEST"), | ||
(2, 86, "topic1", "Django", False), | ||
(1, 14, "✔ topic2", "GSoC", True), |
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.
Since we have a constant defined for the Unicode, let's use it here as well.
@Rohitth007 Thanks for extracting this - this looks cleaner! 🎉 I've merged this manually and made a quick follow-up refactor to adjust the constant to match the server, which includes the space and |
What does this PR do?
This PR indents all TopicButtons to make space for the resolved
topic symbol and easily distinguish between them.
To make topic name length the same as before, the default suffix is
made from 2 spaces to 1 space and the LEFT_WIDTH is increased by 1.
This is equivalent to no difference in topic name length and 2 char
gain in stream/special narrow buttons.
Tested?
Visual changes
