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.

compose_box: Use columnar flex to position Drafts, limit, Send button.

Karl Stolleyf8fa47fa0227
diff --git a/web/styles/compose.css b/web/styles/compose.css
index a22e11fd468..0f1931bfee3 100644
--- a/web/styles/compose.css
+++ b/web/styles/compose.css
@@ -267,6 +267,13 @@
#message-send-controls-container {
grid-area: message-send-controls-container;
+ /* A columnar flex does a nice job here
+ holding Drafts to the top of the
+ container, and the send button to
+ the bottom--even as the compose box
+ expands or contracts. */
+ display: flex;
+ flex-direction: column;
}
#message-formatting-controls-container {
@@ -274,10 +281,12 @@
}
#compose-limit-indicator {
- margin-right: 8px;
font-size: 12px;
color: hsl(39deg 100% 50%);
- align-self: center;
+
+ /* Keep the limit indicator
+ just above the send button */
+ margin-top: auto;
&.over_limit {
color: hsl(0deg 76% 65%);
@@ -981,7 +990,6 @@ textarea.new_message_textarea,
display: flex;
flex-direction: row;
white-space: nowrap;
- margin-top: 2px;
height: 24px;
&.disabled-message-send-controls {