From 06fe4bc943fbe99aed445ca449bc5953c0638ce0 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sat, 5 Nov 2016 12:13:36 -0700 Subject: [PATCH] Rename subject_box to pm-box/topic-box. I'm not crazy about the names pm-box and topic-box, but they are less confusing now. --- static/js/topic_list.js | 2 +- static/styles/left-sidebar.css | 6 ++++-- static/templates/sidebar_private_message_list.handlebars | 2 +- static/templates/topic_list_item.handlebars | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/static/js/topic_list.js b/static/js/topic_list.js index 598e74a368..40b248f582 100644 --- a/static/js/topic_list.js +++ b/static/js/topic_list.js @@ -148,7 +148,7 @@ exports.set_click_handlers = function (callbacks) { e.stopPropagation(); }); - $('#stream_filters').on('click', '.subject_box', function (e) { + $('#stream_filters').on('click', '.topic-box', function (e) { if (e.metaKey || e.ctrlKey) { return; } diff --git a/static/styles/left-sidebar.css b/static/styles/left-sidebar.css index d88a90c9a5..cc2f0c2d34 100644 --- a/static/styles/left-sidebar.css +++ b/static/styles/left-sidebar.css @@ -299,12 +299,14 @@ li.expanded_private_message { margin-bottom: -5px; } -.subject_box { +.pm-box, +.topic-box { display: block; margin-right: 38px; } -.zero-subject-unreads .subject_box { +.zero-subject-unreads .pm-box, +.zero-subject-unreads .topic-box { margin-right: 15px; } diff --git a/static/templates/sidebar_private_message_list.handlebars b/static/templates/sidebar_private_message_list.handlebars index b19038a1a8..3607a648dc 100644 --- a/static/templates/sidebar_private_message_list.handlebars +++ b/static/templates/sidebar_private_message_list.handlebars @@ -1,7 +1,7 @@