Merge lp:~elementary-apps/pantheon-mail/message-header into lp:~elementary-apps/pantheon-mail/trunk

Proposed by Danielle Foré
Status: Work in progress
Proposed branch: lp:~elementary-apps/pantheon-mail/message-header
Merge into: lp:~elementary-apps/pantheon-mail/trunk
Diff against target: 31 lines (+1/-13)
1 file modified
src/client/conversation-viewer/ConversationWidget.vala (+1/-13)
To merge this branch: bzr merge lp:~elementary-apps/pantheon-mail/message-header
Reviewer Review Type Date Requested Status
Danielle Foré Needs Fixing
Review via email: mp+316285@code.launchpad.net

Commit message

ConversationWidget.vala:
* Remove subject line because it can never change per message in a thread
* Add margin to vertically align avatars in collapsed messages

Description of the change

Because of the way threads work, you literally cannot have different subjects in a single thread. It doesn't make sense to show the subject in every message because it will never change. iOS mail, Gmail, and Nylas all seem to agree here.

To post a comment you must log in.
Revision history for this message
David Hewitt (davidmhewitt) wrote :

Am I correct in thinking that the only place you can see the subject at all is in the main message list now?

This is OK for short subject lines, but for longer ones that don't fit in the width of the message list, I can't rely on the reading view to show me the full subject anymore. Can we not keep the subject on at least the first message in the thread?

Revision history for this message
Danielle Foré (danrabbit) wrote :

Yeah that's a fair objection. Marking as "needs fixing" for this reason

review: Needs Fixing

Unmerged revisions

2231. By Danielle Foré

get rid of subject field, vertically center avatar on collapsed messages

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/client/conversation-viewer/ConversationWidget.vala'
2--- src/client/conversation-viewer/ConversationWidget.vala 2016-12-28 21:06:20 +0000
3+++ src/client/conversation-viewer/ConversationWidget.vala 2017-02-02 21:45:16 +0000
4@@ -174,19 +174,6 @@
5 row_id++;
6 }
7
8- if (email.subject != null) {
9- var title_label = new Gtk.Label (_("Subject:"));
10- title_label.halign = Gtk.Align.END;
11- title_label.get_style_context ().add_class (Gtk.STYLE_CLASS_DIM_LABEL);
12- var value_label = new Gtk.Label (email.subject.value);
13- value_label.hexpand = true;
14- ((Gtk.Misc) value_label).xalign = 0;
15- value_label.wrap = true;
16- header_expanded_fields.attach (title_label, 0, row_id, 1, 1);
17- header_expanded_fields.attach (value_label, 1, row_id, 2, 1);
18- row_id++;
19- }
20-
21 if (email.date != null) {
22 var value_label = new Gtk.Label (Date.pretty_print_verbose (email.date.value, clock_format));
23 value_label.get_style_context ().add_class (Gtk.STYLE_CLASS_DIM_LABEL);
24@@ -346,6 +333,7 @@
25 header.add (header_grid);
26
27 avatar = new Granite.Widgets.Avatar.with_default_icon (48);
28+ avatar.margin_top = 4;
29 avatar.valign = Gtk.Align.START;
30
31 user_name = new Gtk.Label (null);

Subscribers

People subscribed via source and target branches