Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_row: Prevent avatar margin from shifting grid row.

Karl Stolley1878758bafb4
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index 3b763ed9d3b..6372b292aa4 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -316,7 +316,14 @@
grid-area: avatar;
/* The picture should not participate in the baseline group. */
align-self: start;
- margin-top: var(--message-box-vertical-margin);
+
+ .inline_profile_picture {
+ /* Setting the margin inside this element prevents
+ unwanted shifts in the placement of especially
+ sender-line elements on the .messagebox-content
+ grid. */
+ margin-top: var(--message-box-vertical-margin);
+ }
}
.status-message {