user_group_popover: Fix extra gap when group description is empty.

Previously, when the group description was empty, the group description
element still existed as an empty element which resulted in an extra
gap between the group name and the members count.

This commit fixes this by conditionally rendering the group description
element in the handlebar template.
This commit is contained in:
Sayam Samal 2024-11-12 18:53:32 +05:30
parent b4a297688f
commit 55d0d883d9
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@
<i class="popover-menu-icon zulip-icon zulip-icon-triple-users" aria-hidden="true"></i>
<span class="popover-group-menu-name">{{group_name}}</span>
</div>
<div class="popover-group-menu-description">{{group_description}}</div>
{{#if group_description}}
<div class="popover-group-menu-description">{{group_description}}</div>
{{/if}}
</div>
</li>
{{#if (or members.length subgroups.length)}}