mirror of https://github.com/zulip/zulip.git
typeahead: Remove unsubscribe icon.
This commit is contained in:
parent
93e0561857
commit
a6e3a38e68
|
@ -99,7 +99,6 @@ export function render_typeahead_item(args: {
|
||||||
pronouns?: string | undefined;
|
pronouns?: string | undefined;
|
||||||
is_user_group?: boolean;
|
is_user_group?: boolean;
|
||||||
stream?: StreamData;
|
stream?: StreamData;
|
||||||
is_unsubscribed?: boolean;
|
|
||||||
emoji_code?: string | undefined;
|
emoji_code?: string | undefined;
|
||||||
}): string {
|
}): string {
|
||||||
const has_image = args.img_src !== undefined;
|
const has_image = args.img_src !== undefined;
|
||||||
|
@ -173,7 +172,6 @@ export function render_stream(stream: StreamData): string {
|
||||||
return render_typeahead_item({
|
return render_typeahead_item({
|
||||||
secondary_html: stream.rendered_description,
|
secondary_html: stream.rendered_description,
|
||||||
stream,
|
stream,
|
||||||
is_unsubscribed: !stream.subscribed,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -134,20 +134,6 @@
|
||||||
gap: 0.25ch;
|
gap: 0.25ch;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
|
||||||
.unsubscribed_icon {
|
|
||||||
visibility: visible;
|
|
||||||
float: right;
|
|
||||||
margin-top: 5px;
|
|
||||||
color: hsl(96deg 7% 73%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.unsubscribed_icon {
|
|
||||||
visibility: hidden;
|
|
||||||
font-size: 0.8em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.typeahead-option-label-container {
|
.typeahead-option-label-container {
|
||||||
|
|
|
@ -42,7 +42,3 @@
|
||||||
</span>
|
</span>
|
||||||
{{~/if}}
|
{{~/if}}
|
||||||
</div>
|
</div>
|
||||||
{{#if is_unsubscribed}}
|
|
||||||
<span class="fa fa-exclamation-triangle unsubscribed_icon"
|
|
||||||
title="{{t 'You are not currently subscribed to this channel.' }}"></span>
|
|
||||||
{{/if}}
|
|
||||||
|
|
Loading…
Reference in New Issue