Skip to content
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

Ensure recipient headers are shown in message list #672

Merged
merged 2 commits into from
May 27, 2020

Conversation

neiljp
Copy link
Collaborator

@neiljp neiljp commented May 25, 2020

This fixes #671, which is reproducible by resizing the window to be very narrow and noting the 'blank' headers that appear where there is a change in recipients.

An additional commit is included, which improves the spacing between the header text and the new lines/bars, both fixing an existing bug (for PMs) and ensuring a space is shown in the narrow-window situation.

@zulipbot zulipbot added size: S [Automatic label added by zulipbot] bug Something isn't working area: UI General user interface update labels May 25, 2020
@neiljp neiljp added this to the 0.5.2 milestone May 25, 2020
Copy link
Member

@preetmishra preetmishra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@neiljp Thanks for pushing a fix. This seems to work as expected and the changes look good to me. 👍

Update: I ran the changes locally for manual testing.

To see the difference, I replaced the text, that goes in the title, with a very long string (the Divider bar doesn't show up but I see you've mentioned that in the commit message). The spacing commit looks good as well.

However, there's a typo in the first commit message - 'previousely'. I missed it in the first pass.

neiljp added 2 commits May 26, 2020 16:04
This commit allows recipient headers to wrap onto multiple lines, rather
than being a fixed width, which previously caused them to not be
rendered in narrow windows.

This at least shows the recipient header if they are long, however the
styling could be improved. A custom urwid widget may be necessary to
improve further.

Fixes zulip#671.
This improves consistency between how private and stream message
recipient headers are shown.

For private messages, this avoids the space being spuriously highlighted
(selected) when the message underneath is selected, as a separate space
in the columns was not previously styled.

For stream messages, this ensures that the stream/topic text is
separated from the line/bar by a space, if it wraps onto a second line;
previously the space was part of the stream/topic text.

Tests amended.
@neiljp neiljp force-pushed the 2020-05-23-ensure-recipients-shown branch from df33751 to a6c686b Compare May 26, 2020 23:37
@neiljp
Copy link
Collaborator Author

neiljp commented May 27, 2020

@preetmishra Thanks for the review 👍 Merging now.

@neiljp neiljp merged commit 244b819 into zulip:master May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UI General user interface update bug Something isn't working size: S [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Long message recipients are not shown in narrow windows
3 participants