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.
This commit is contained in:
m-e-l-u-h-a-n 2021-03-11 03:21:53 +05:30 committed by Tim Abbott
parent 629aeced16
commit e781136acd
3 changed files with 4 additions and 5 deletions

View File

@ -868,7 +868,7 @@ run_test("initialize", (override) => {
fake_this = {completing: "mention", token: "hamletcharacters"};
actual_value = options.highlighter.call(fake_this, hamletcharacters);
expected_value =
' <i class="typeahead-image icon fa fa-group" aria-hidden="true"></i>\n<strong>hamletcharacters</strong>&nbsp;&nbsp;\n<small class="autocomplete_secondary">Characters of Hamlet</small>\n';
' <i class="typeahead-image icon fa fa-group no-presence-circle" aria-hidden="true"></i>\n<strong>hamletcharacters</strong>&nbsp;&nbsp;\n<small class="autocomplete_secondary">Characters of Hamlet</small>\n';
assert.equal(actual_value, expected_value);
// matching

View File

@ -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;
}

View File

@ -13,11 +13,11 @@
{{#if has_image}}
<img class="typeahead-image" src="{{ img_src }}" />
{{else}}
<span class='typeahead-image fa fa-bullhorn'></span>
<span class='typeahead-image fa fa-bullhorn no-presence-circle'></span>
{{/if}}
{{else}}
{{#if is_user_group}}
<i class="typeahead-image icon fa fa-group" aria-hidden="true"></i>
<i class="typeahead-image icon fa fa-group no-presence-circle" aria-hidden="true"></i>
{{/if}}
{{/if}}
{{/if}}