Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
right_sidebar: Remove realm description for spectators.
Kislay Verma2feee9d75688
diff --git a/web/src/sidebar_ui.ts b/web/src/sidebar_ui.tsindex 9e3109cceac..1dbda94899e 100644--- a/web/src/sidebar_ui.ts+++ b/web/src/sidebar_ui.ts@@ -225,9 +225,7 @@ export function initialize_left_sidebar(): void {}export function initialize_right_sidebar(): void {- const rendered_sidebar = render_right_sidebar({- realm_rendered_description: page_params.realm_rendered_description,- });+ const rendered_sidebar = render_right_sidebar();$("#right-sidebar-container").html(rendered_sidebar);diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.cssindex e68ee190dea..aafa0f85bb9 100644--- a/web/styles/right_sidebar.css+++ b/web/styles/right_sidebar.css@@ -360,20 +360,3 @@ $user_status_emoji_width: 24px;margin-left: -1px;}}--.right-sidebar-shortcuts .realm-description {- display: flex;- flex-direction: column;- align-items: center;- margin-right: 20px;- width: 230px;-- .color_animated_button {- width: 100%;- margin-bottom: 10px;- }-- & hr {- width: 90%;- }-}diff --git a/web/templates/right_sidebar.hbs b/web/templates/right_sidebar.hbsindex 6c40b32e223..c4491eccda1 100644--- a/web/templates/right_sidebar.hbs+++ b/web/templates/right_sidebar.hbs@@ -27,13 +27,6 @@</div><div class="right-sidebar-shortcuts"><a class="invite-user-link" role="button"><i class="fa fa-user-plus" aria-hidden="true"></i>{{t 'Invite users to organization' }}</a>- {{#if realm_rendered_description}}- <div class="only-visible-for-spectators">- <div class="realm-description">- <div class="rendered_markdown">{{rendered_markdown realm_rendered_description }}</div>- </div>- </div>- {{/if}}</div></div></div>