From e781136acd1a885277f8d81bf35dd06d818adf18 Mon Sep 17 00:00:00 2001 From: m-e-l-u-h-a-n Date: Thu, 11 Mar 2021 03:21:53 +0530 Subject: [PATCH] css: Add separate class for typeahead items with no presence circle. This commit adds a new class for typeahead items that do not need a presence circle. It is changed to support addition of new items that do not require presence circle. There should not be any visual change due to this. --- frontend_tests/node_tests/composebox_typeahead.js | 2 +- static/styles/zulip.css | 3 +-- static/templates/typeahead_list_item.hbs | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend_tests/node_tests/composebox_typeahead.js b/frontend_tests/node_tests/composebox_typeahead.js index f7bc1b8cf1..598d2741e2 100644 --- a/frontend_tests/node_tests/composebox_typeahead.js +++ b/frontend_tests/node_tests/composebox_typeahead.js @@ -868,7 +868,7 @@ run_test("initialize", (override) => { fake_this = {completing: "mention", token: "hamletcharacters"}; actual_value = options.highlighter.call(fake_this, hamletcharacters); expected_value = - ' \nhamletcharacters  \nCharacters of Hamlet\n'; + ' \nhamletcharacters  \nCharacters of Hamlet\n'; assert.equal(actual_value, expected_value); // matching diff --git a/static/styles/zulip.css b/static/styles/zulip.css index e2a7a71933..de4a42ea74 100644 --- a/static/styles/zulip.css +++ b/static/styles/zulip.css @@ -2053,8 +2053,7 @@ div.focused_table { font-size: 19px; text-align: center; - &.fa-group, - &.fa-bullhorn { + &.no-presence-circle { margin-left: 9px; top: 3px; } diff --git a/static/templates/typeahead_list_item.hbs b/static/templates/typeahead_list_item.hbs index f2d43eb88e..9d96be5122 100644 --- a/static/templates/typeahead_list_item.hbs +++ b/static/templates/typeahead_list_item.hbs @@ -13,11 +13,11 @@ {{#if has_image}} {{else}} - + {{/if}} {{else}} {{#if is_user_group}} - + {{/if}} {{/if}} {{/if}}