message_row: Mock available icons to prevent post-echo reflow.

This commit is contained in:
Karl Stolley
2025-02-19 14:20:21 -06:00
committed by Tim Abbott
parent c777fede07
commit 509a71a666
2 changed files with 10 additions and 0 deletions

View File

@@ -912,6 +912,14 @@ of the base style defined for a read-only textarea in dark mode. */
cursor: default;
}
/* Placehold the control buttons, unless there's a failure. */
.locally-echoed
.messagebox:hover
.message_controls
.message_control_button:not(.failed_message_action) {
visibility: hidden;
}
.recipient_row {
/* See https://stackoverflow.com/questions/2717480/css-selector-for-first-element-with-class/8539107#8539107
for details on how this works */

View File

@@ -41,6 +41,8 @@
{{#if msg/locally_echoed}}
{{#if msg/failed_request}}
{{> message_controls_failed_msg}}
{{ else }}
{{> message_controls .}}
{{/if}}
{{else}}
{{> message_controls .}}