mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +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.
24 lines
1.6 KiB
Handlebars
24 lines
1.6 KiB
Handlebars
<tr data-stream-id="{{stream_id}}" class="hidden-remove-button-row">
|
|
<td class="user-profile-channel-row">
|
|
<div class="user-profile-channel-container">
|
|
<span class="stream-privacy-original-color-{{stream_id}} stream-privacy filter-icon" style="color: {{stream_color}}">
|
|
{{> stream_privacy . }}
|
|
</span>
|
|
<a class="user-profile-channel-list-item" href="{{stream_edit_url}}">{{name}}</a>
|
|
</div>
|
|
</td>
|
|
{{#if show_unsubscribe_button}}
|
|
<td class="remove_subscription">
|
|
<div class="remove-button-wrapper">
|
|
{{#if show_private_stream_unsub_tooltip}}
|
|
{{> components/icon_button icon="close" custom_classes="hidden-remove-button remove-subscription-button tippy-zulip-tooltip" intent="danger" aria-label=(t "Unsubscribe") data-tippy-content=(t "Use channel settings to unsubscribe from private channels.") }}
|
|
{{else if show_last_user_in_private_stream_unsub_tooltip}}
|
|
{{> components/icon_button icon="close" custom_classes="hidden-remove-button remove-subscription-button tippy-zulip-tooltip" intent="danger" aria-label=(t "Unsubscribe") data-tippy-content=(t "Use channel settings to unsubscribe the last user from a private channel.") }}
|
|
{{else}}
|
|
{{> components/icon_button icon="close" custom_classes="hidden-remove-button remove-subscription-button tippy-zulip-delayed-tooltip" intent="danger" aria-label=(t "Unsubscribe") data-tippy-content=(t "Unsubscribe") }}
|
|
{{/if}}
|
|
</div>
|
|
</td>
|
|
{{/if}}
|
|
</tr>
|