mirror of
https://github.com/zulip/zulip.git
synced 2025-10-22 20:42:14 +00:00
This commit removes the "Remove" and "Unsubscribe" action buttons from various tables and replaces them with icon buttons using the "close" icon. Additionally, previously the rows with and without a remove button had different heights. This commit updates the fixed `px` values to `em` units to ensure equal height for all rows, regardless of whether a remove-subscription button is present. Fixes: #34874.
23 lines
1.3 KiB
Handlebars
23 lines
1.3 KiB
Handlebars
<tr data-group-id="{{group_id}}" class="hidden-remove-button-row">
|
|
<td class="user-profile-group-row">
|
|
{{#if is_guest}}
|
|
{{name}}
|
|
{{else}}
|
|
<a class="group_list_item_link" href="{{group_edit_url}}">{{name}}</a>
|
|
{{/if}}
|
|
</td>
|
|
{{#if can_remove_members }}
|
|
<td class="remove_member">
|
|
<div class="remove-button-wrapper">
|
|
{{#if is_direct_member}}
|
|
{{> components/icon_button icon="close" custom_classes="hidden-remove-button remove-member-button tippy-zulip-delayed-tooltip" intent="danger" aria-label=(t "Remove") data-tippy-content=(t "Remove") }}
|
|
{{else}}
|
|
<span class="tippy-zulip-tooltip" data-tippy-content="{{#if is_me}}{{t 'You are a member of {name} because you are a member of a subgroup ({subgroups_name}).'}} {{else}}{{t 'This user is a member of {name} because they are a member of a subgroup ({subgroups_name}).'}}{{/if}}">
|
|
{{> components/icon_button icon="close" custom_classes="hidden-remove-button remove-member-button tippy-zulip-delayed-tooltip" intent="danger" aria-label=(t "Remove") data-tippy-content=(t "Remove") disabled="disabled" }}
|
|
</span>
|
|
{{/if}}
|
|
</div>
|
|
</td>
|
|
{{/if}}
|
|
</tr>
|