[4.2.0] Number of email preview rows change

REPRODUCIBILITY: 100%
BUILD ID = OS VERSION: 4.2.0.19 EA
HARDWARE: XA2U, X10II (and others)
UI LANGUAGE: Finnish
REGRESSION: Yes

DESCRIPTION:

Jolla Email shows preview of body text in the list elements in inbox and other folders. The amount of lines is not consistent; if the email is unread it’s three lines, if it’s read it’s two lines. This leads to jumpiness and inconsistent item height, and wastes screen space. This also moves every item under itself up or down, which makes me at least lose track of where I was, causing annoyance, and once it made me delete a wrong email (no harm done, but still). Another way to cause visible bumpiness is to mark an email or three read on another device and then update the inbox.

PRECONDITIONS:

  • Have an email account
  • Have a few mails in inbox

STEPS TO REPRODUCE:

  • Mark email as read on unread

EXPECTED RESULT:

  • Mail list item size doesn’t change

ACTUAL RESULT:

  • Mail list item size changes accordingly

ADDITIONAL INFORMATION:

Here is a patch to fix it, made with 4.2.0.19 EA:

--- /usr/share/jolla-email/pages/MessageItem.qml
+++ /usr/share/jolla-email/pages/MessageItem.qml.new
@@ -177,7 +177,7 @@
             color: Theme.highlightColor
             opacity: model.readStatus ? Theme.opacityHigh : 1.0
 
-            maximumLineCount: Screen.sizeCategory >= Screen.Large ? 1 : ( model.readStatus ? 2 : 3)
+            maximumLineCount: Screen.sizeCategory >= Screen.Large ? 1 : 2
             lineHeight: subjectText.height - Math.round(Theme.paddingSmall/2)
             lineHeightMode: Text.FixedHeight
             width: parent.width

I chose two lines, so more emails can fit in the screen - that’s my preference.

4 Likes