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

UI redesign: message content layout #5511

Open
terpimost opened this issue Sep 29, 2022 · 0 comments
Open

UI redesign: message content layout #5511

terpimost opened this issue Sep 29, 2022 · 0 comments
Labels
a-message list redesign Belonging to redesign project

Comments

@terpimost
Copy link

This issue is about new message content layout, not colors, not any other functionality.
I don't know how exactly mobile message look detached from the web or if it is the same css but for different media query.
If web app would have the same layout of message on mobile that would be great.
All sizes are in 100% scale (no high definition), so my px would be points in iOS and dp in android I guess.

image

[Figma ref](https://www.figma.com/file/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=538%3A20300) (if want to inspect details please make a copy so you have edit rights to your copy)

I'm very sorry but mockup containers structure isn't clean. So I try to clarify things here and in chat if you have any confusion.

The whole container of messages utilizes 100% of the width on mobile. There is no any gap between 2 messages.
image

Within the message there are such paddings for text
image
Notice the vertical space of 2px between the author and the message.

In case the message is without an author:
image

Left and right margin space will be utilized for different 16px size icons (moved, edited, bookmarked):
image
image

The font is the same as in web app:
image
Let me know if it is not possible to use it. I was hoping we could embed Source Sans 3 for the whole mobile app.

Author

Author container can be of a fixed width with ellipsis of a long name:
image
In my mock I gave a bit of space around the userpic:
image
User pic is 32x32 with 3px corner radius

For the time display I'm using small caps:
image
You can make it 50% transparent black color.

Topic bars

Topic bar is 40px height
image

font-family: Source Sans 3;
font-size: 16px;
font-weight: 600;
line-height: 18px;
letter-spacing: 0.02em;
text-align: left;

A date is a bit tricky. It has font-variant: small-caps; while the font-size is 16px. Since the background almost never white the color is 40% opacity black in the light theme.
I made it vertically aligned
image but the correct way would be to align it according to the text baseline:
image. This might require to manipulate the top margin/padding

Topic/stream/ recipient bar color

The algorithm of colorizing the recipient bar is described here https://codepen.io/terpimost/pen/WNzdrJN?editors=0010
The core idea is in these two functions
image
To see default zulip colors scroll example all the way down

@terpimost terpimost added a-message list redesign Belonging to redesign project labels Sep 29, 2022
sirpengi added a commit to sirpengi/zulip-flutter that referenced this issue Oct 25, 2023
Adds a new _UnreadMarker that renders as a 4px solid
border on the left edge of messages. Design based on
mockups at: zulip/zulip-mobile#5511
sirpengi added a commit to sirpengi/zulip-flutter that referenced this issue Oct 25, 2023
Adds a new _UnreadMarker that renders as a 4px solid
border on the left edge of messages. Design based on
mockups at: zulip/zulip-mobile#5511
sirpengi added a commit to sirpengi/zulip-flutter that referenced this issue Oct 25, 2023
Adds a new _UnreadMarker that renders as a 4px solid
border on the left edge of messages. Design based on
mockups at: zulip/zulip-mobile#5511
sirpengi added a commit to sirpengi/zulip-flutter that referenced this issue Oct 25, 2023
Adds a new _UnreadMarker that renders as a 4px solid
border on the left edge of messages. Design based on
mockups at: zulip/zulip-mobile#5511

Fixes: zulip#79
sirpengi added a commit to sirpengi/zulip-flutter that referenced this issue Nov 23, 2023
Design specifies 16px horizontal padding in recipient headers,
see zulip/zulip-mobile#5511 .
Also adjusted message timestamps so they line up with the
new headers.
sirpengi added a commit to sirpengi/zulip-flutter that referenced this issue Nov 24, 2023
Design specifies 16px horizontal padding in recipient headers,
see zulip/zulip-mobile#5511 .
Also adjusted message timestamps so they line up with the
new headers.
sirpengi added a commit to sirpengi/zulip-flutter that referenced this issue Nov 24, 2023
Design specifies 16px horizontal padding in recipient headers,
see zulip/zulip-mobile#5511 .
Also adjusted message timestamps so they line up with the
new headers.
sirpengi added a commit to sirpengi/zulip-flutter that referenced this issue Nov 24, 2023
Design specifies 16px horizontal padding in recipient headers,
see zulip/zulip-mobile#5511 .
Also adjusted message timestamps so they line up with the
new headers.
sirpengi added a commit to sirpengi/zulip-flutter that referenced this issue Nov 28, 2023
Design specifies 16px horizontal padding in recipient headers,
see zulip/zulip-mobile#5511 .
Also adjusted message timestamps so they line up with the
new headers.
sirpengi added a commit to sirpengi/zulip-flutter that referenced this issue Nov 29, 2023
Design specifies 16px horizontal padding in recipient headers,
see zulip/zulip-mobile#5511 .
Also adjusted message timestamps so they line up with the
new headers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-message list redesign Belonging to redesign project
Projects
None yet
Development

No branches or pull requests

1 participant