mirror of https://github.com/zulip/zulip.git
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:
parent
b4a297688f
commit
55d0d883d9
|
@ -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)}}
|
||||
|
|
Loading…
Reference in New Issue