From a6e3a38e68fd4a3269ae1fbfe4b69868252aeb6b Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Wed, 11 Sep 2024 07:20:30 +0000 Subject: [PATCH] typeahead: Remove unsubscribe icon. --- web/src/typeahead_helper.ts | 2 -- web/styles/typeahead.css | 14 -------------- web/templates/typeahead_list_item.hbs | 4 ---- 3 files changed, 20 deletions(-) diff --git a/web/src/typeahead_helper.ts b/web/src/typeahead_helper.ts index 8b78336def..8056a3a4f7 100644 --- a/web/src/typeahead_helper.ts +++ b/web/src/typeahead_helper.ts @@ -99,7 +99,6 @@ export function render_typeahead_item(args: { pronouns?: string | undefined; is_user_group?: boolean; stream?: StreamData; - is_unsubscribed?: boolean; emoji_code?: string | undefined; }): string { const has_image = args.img_src !== undefined; @@ -173,7 +172,6 @@ export function render_stream(stream: StreamData): string { return render_typeahead_item({ secondary_html: stream.rendered_description, stream, - is_unsubscribed: !stream.subscribed, }); } diff --git a/web/styles/typeahead.css b/web/styles/typeahead.css index 72d50cb5fc..a48baa9194 100644 --- a/web/styles/typeahead.css +++ b/web/styles/typeahead.css @@ -134,20 +134,6 @@ gap: 0.25ch; 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 { diff --git a/web/templates/typeahead_list_item.hbs b/web/templates/typeahead_list_item.hbs index b284a3aee9..0dd3038c15 100644 --- a/web/templates/typeahead_list_item.hbs +++ b/web/templates/typeahead_list_item.hbs @@ -42,7 +42,3 @@ {{~/if}} -{{#if is_unsubscribed}} - -{{/if}}