mirror of https://github.com/zulip/zulip.git
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:
parent
629aeced16
commit
e781136acd
|
@ -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> \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> \n<small class="autocomplete_secondary">Characters of Hamlet</small>\n';
|
||||
assert.equal(actual_value, expected_value);
|
||||
|
||||
// matching
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue