Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Size collapsed compose buttons relatively.
Karl Stolley2b92baa75468
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex e7252033d18..32f47e02d5b 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -173,15 +173,16 @@Line height of the message buttons in compose box. Here it's necessaryto control this value uniformly and precisely to avoid issues withlayout shifts originating with non-Latin characters in this area.+ 1.429em is 20px at 14px em.*/- --line-height-compose-buttons: 20px;+ --line-height-compose-buttons: 1.429em;/*Maximum height of the subscribers list in stream settings so thatit doesn't cause the container to have a second scrollbar.This value will be overridden when stream settings is opened.*/- --stream-subscriber-list-max-height: 100%;+ --stream-subscriber-list-max-height: 1.429em;/*Reusable dimensions and offsets.diff --git a/web/styles/compose.css b/web/styles/compose.cssindex 9a71c41d666..24456bcbe11 100644--- a/web/styles/compose.css+++ b/web/styles/compose.css@@ -3,21 +3,32 @@display: flex;column-gap: 4px;flex-direction: row;- align-items: center;+ /* With precisely controlled line-heights+ in this area, stretch will both center+ and maintain uniform heights between the+ reply button and the new-message button. */+ align-items: stretch;.new_message_button {.button.small {- font-size: 1em;+ /* Keep the new message button sized to match+ adjacent buttons. */+ font-size: inherit;+ line-height: var(--line-height-compose-buttons);padding: 3px 10px;- vertical-align: middle;}.compose_mobile_button {- & span {- font-size: 1.2em !important;- font-weight: 400;- line-height: var(--line-height-compose-buttons);- }+ /* This is ugly, but necessary to use the+ text + for the compose button. An icon+ would likely be a better choice here.+ 1.2em is 16.8px at 14px em. */+ font-size: 1.2em !important;+ /* 1.2em is 16.8px at 14px em; this+ maintains the 20px em-equivalent compose+ line height, but at a 16.8px em. */+ line-height: 1.19em !important;+ font-weight: 400;}}