git.lucas.co / cce-mail
mail client (IMAP/SMTP)
git clone https://git.lucas.co/cce-mail.git

commit0142e799678092ca7ec4b322486d3f5b31dbaf5f
parentd1de043141
authorLucas Galante <lsgalante12@gmail.com>
date2026-09-28 19:35
fix: the subject line is drawn in full too

Same reasoning as the address lines (b4698b9, 37803ca): the subject
draws its whole text, bounded only by its clip rect at the header
plate's content edge. Only the Date keeps its ellipsis.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

 src/main.rs | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 0bdd807..637ab02 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -4072,13 +4072,13 @@ impl ClearEmailApp {
                     plate_x + plate_w - pane_inner_pad(),
                     plate_y + plate_h,
                 ]);
-                // (text, y, size, color, ellipsized). The address lines are
-                // drawn in full — an address is read end to end, and an
-                // ellipsis in the middle of one hides exactly the part that
-                // tells senders and recipients apart — so only their clip
-                // rects bound them.
+                // (text, y, size, color, ellipsized). The subject and the
+                // address lines are drawn in full — each is read end to
+                // end, and an ellipsis in the middle hides exactly the part
+                // that tells one apart from another — so only their clip
+                // rects bound them. The Date alone keeps its ellipsis.
                 let header_lines: [(String, f32, f32, [u8; 3], bool); 4] = [
-                    (email.subject.clone(), DETAIL_SUBJECT_Y, 15.0, [0xff, 0xff, 0xff], true),
+                    (email.subject.clone(), DETAIL_SUBJECT_Y, 15.0, [0xff, 0xff, 0xff], false),
                     (format!("From: {}", email.from), DETAIL_FROM_Y, 11.0, [0xb0, 0xb0, 0xb8], false),
                     (format!("To:   {}", email.to), DETAIL_TO_Y, 11.0, [0x83, 0x83, 0x8a], false),
                     (format!("Date: {}", email.date), DETAIL_DATE_Y, 11.0, [0x83, 0x83, 0x8a], true),