From d2a6d0dfda007bafc1eb0b301bace24d5b841564 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Fri, 26 Jun 2020 12:54:23 +0530 Subject: [PATCH] recent_topics: Move launch button to top left sidebar. Make dispaly `a` tag a block to so that it is clickable on anywhere in the button space. --- static/js/click_handlers.js | 5 ----- static/styles/left-sidebar.scss | 10 +++++++--- templates/zerver/app/left_sidebar.html | 10 +++++++++- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js index 3a10eb155d..657d224ace 100644 --- a/static/js/click_handlers.js +++ b/static/js/click_handlers.js @@ -650,11 +650,6 @@ exports.initialize = function () { compose_actions.cancel(); }); - $("#recent_topics_icon").click(function (e) { - e.stopPropagation(); - hashchange.go_to_location('recent_topics'); - }); - $("#streams_inline_cog").click(function (e) { e.stopPropagation(); hashchange.go_to_location('streams/subscribed'); diff --git a/static/styles/left-sidebar.scss b/static/styles/left-sidebar.scss index c740394825..58a1ce4a4a 100644 --- a/static/styles/left-sidebar.scss +++ b/static/styles/left-sidebar.scss @@ -55,8 +55,7 @@ li.show-more-topics { } #streams_inline_cog, -#streams_filter_icon, -#recent_topics_icon { +#streams_filter_icon { float: right; opacity: 0.50; font-size: 13px; @@ -251,10 +250,15 @@ li.active-sub-filter { li.top_left_all_messages, .private_messages_header, li.top_left_mentions, -li.top_left_starred_messages { +li.top_left_starred_messages, +li.top_left_recent_topics { position: relative; padding-top: 1px; padding-bottom: 1px; + + a { + display: block; + } } .top_left_row { diff --git a/templates/zerver/app/left_sidebar.html b/templates/zerver/app/left_sidebar.html index e53793973f..7d3832e122 100644 --- a/templates/zerver/app/left_sidebar.html +++ b/templates/zerver/app/left_sidebar.html @@ -56,11 +56,19 @@ +
  • + + + + + {#- squash whitespace -#} + {{ _('Recent topics') }} + +
  • -