mirror of
https://github.com/zulip/zulip.git
synced 2025-10-22 20:42:14 +00:00
message_edit: Scale resolve topic spinner with font size.
This commit also changes the width of the spinner so that the resolve icon and spinner take up the same width.
This commit is contained in:
@@ -735,7 +735,7 @@ export function start($row: JQuery, edit_box_open_callback?: () => void): void {
|
||||
function show_toggle_resolve_topic_spinner($row: JQuery): void {
|
||||
const $spinner = $row.find(".toggle_resolve_topic_spinner");
|
||||
loading.make_indicator($spinner);
|
||||
$spinner.css({width: "18px"});
|
||||
$spinner.css({width: "1em"});
|
||||
$row.find(".on_hover_topic_resolve, .on_hover_topic_unresolve").hide();
|
||||
$row.find(".toggle_resolve_topic_spinner").show();
|
||||
}
|
||||
|
@@ -1229,16 +1229,19 @@ nav {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div.topic_edit_spinner {
|
||||
div.topic_edit_spinner,
|
||||
div.toggle_resolve_topic_spinner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 1.2em; /* 18px at 15px/em (from font size set in .message-header-contents) */
|
||||
height: 1.2em; /* 18px at 15px/em */
|
||||
}
|
||||
|
||||
div.toggle_resolve_topic_spinner {
|
||||
margin-top: -12px;
|
||||
padding-left: 9px;
|
||||
.on_hover_topic_unresolve,
|
||||
.on_hover_topic_resolve {
|
||||
/* Matches the width set in `show_toggle_resolve_topic_spinner`,
|
||||
to ensure spinner and resolve icon are the same width */
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
div.topic_edit_spinner .loading_indicator_spinner,
|
||||
|
@@ -56,7 +56,7 @@
|
||||
{{else}}
|
||||
<i class="fa fa-check on_hover_topic_resolve recipient-bar-control recipient_bar_icon hidden-for-spectators" data-topic-name="{{topic}}" data-tippy-content="{{t 'Mark as resolved' }}" role="button" tabindex="0" aria-label="{{t 'Mark as resolved' }}"></i>
|
||||
{{/if}}
|
||||
<div class="toggle_resolve_topic_spinner" style="display: none"></div>
|
||||
<div class="toggle_resolve_topic_spinner recipient_bar_icon" style="display: none"></div>
|
||||
{{/if}}
|
||||
|
||||
{{#if (and is_subscribed (not is_archived))}}
|
||||
|
Reference in New Issue
Block a user