From 7b87c201f09af5b6967cb7e7d586da66bb8e2f40 Mon Sep 17 00:00:00 2001 From: Jeff Arnold Date: Thu, 18 Apr 2013 21:45:59 -0400 Subject: [PATCH] Revert "Automatically condense long messages" This reverts commit 057f08f2fcef43070b0838a600f6a89c479b4ee8. (imported from commit ba1dbfcaeef6bc1d5befb2d59122217f532065ac) --- zephyr/static/js/message_list.js | 12 ------------ zephyr/static/js/ui.js | 17 +---------------- zephyr/static/styles/zephyr.css | 19 +------------------ zephyr/static/templates/message.handlebars | 2 -- 4 files changed, 2 insertions(+), 48 deletions(-) diff --git a/zephyr/static/js/message_list.js b/zephyr/static/js/message_list.js index 666929897f..49b5620f79 100644 --- a/zephyr/static/js/message_list.js +++ b/zephyr/static/js/message_list.js @@ -396,18 +396,6 @@ MessageList.prototype = { }}); } - $.each(rendered_elems, function (index, elem) { - var row = $(elem); - - var content = $(elem).find(".message_content")[0]; - if (content !== undefined) { - if( content.offsetHeight < content.scrollHeight || - content.offsetWidth < content.scrollWidth) { - $(elem).find(".message_expander").show(); - } - } - }); - // Re-add the fading of messages that is lost when we re-render. compose.update_faded_messages(); diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index 942c2602ca..ffc6407c17 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -877,8 +877,7 @@ $(function () { $("#main_div").on("click", ".messagebox", function (e) { var target = $(e.target); - if (target.is("a") || target.is("img.message_inline_image") || target.is("img.twitter-avatar") || - target.is("div.message_length_controller")) { + if (target.is("a") || target.is("img.message_inline_image") || target.is("img.twitter-avatar")) { // If this click came from a hyperlink, don't trigger the // reply action. The simple way of doing this is simply // to call e.stopPropagation() from within the link's @@ -934,20 +933,6 @@ $(function () { toggle_star(rows.id($(this).closest(".message_row"))); }); - $("#home").on("click", ".message_expander", function (e) { - var row = $(this).closest(".message_row"); - row.find(".message_content").addClass("expanded"); - $(this).hide(); - row.find(".message_collapser").show(); - }); - - $("#home").on("click", ".message_collapser", function (e) { - var row = $(this).closest(".message_row"); - row.find(".message_content").removeClass("expanded"); - $(this).hide(); - row.find(".message_expander").show(); - }); - $("#home").on("click", ".narrows_by_recipient", function (e) { var nearest = current_msg_list.get(rows.id($(this).closest(".recipient_row"))); var selected = current_msg_list.selected_message(); diff --git a/zephyr/static/styles/zephyr.css b/zephyr/static/styles/zephyr.css index 67a49bc7a2..c49b62a0ce 100644 --- a/zephyr/static/styles/zephyr.css +++ b/zephyr/static/styles/zephyr.css @@ -432,9 +432,6 @@ table.focused_table { .message_content { margin-left: 5px; margin-right: 35px; /* size of the timestamp */ - line-height: 1.5em; - max-height: 9.0em; - overflow: hidden; } @media (max-width: 480px) { .message_content { @@ -442,20 +439,6 @@ table.focused_table { } } -.message_content.expanded { - max-height: none; -} - -.message_length_controller { - display: none; - text-align: center; - color: #0088CC; -} - -.message_length_controller:hover { - text-decoration: underline; -} - blockquote { margin-bottom: 6px; } @@ -1130,4 +1113,4 @@ li.expanded_subject { .sub-unsub-message { text-align: center; padding-bottom: 10px; /* same as .bookend */ -} +} \ No newline at end of file diff --git a/zephyr/static/templates/message.handlebars b/zephyr/static/templates/message.handlebars index e6c063bb92..179e1ba1b2 100644 --- a/zephyr/static/templates/message.handlebars +++ b/zephyr/static/templates/message.handlebars @@ -85,8 +85,6 @@
{{{content}}}
-
[More...]
-
[Collapse this message]
{{/with}}