Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose_box: Scale formatting buttons with info density.
Karl Stolley7b5f0e4d890a
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 97eb29f7794..1bf85e5e1da 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -202,7 +202,14 @@flex item. 2.1786em is 30.5px at 14px/1em.*/--compose-recipient-box-min-height: 2.1786em;- --compose-formatting-buttons-row-height: 28px;+ /* 28px at 14px/1em */+ /* Note that this variable can only be used in contexts where+ the font-size doesn't deviate from the base font-size;+ that excludes contexts like .compose_control_button, which+ uses font-sizing to adjust the size of the icon. Related+ values have been noted in comments with this variable name,+ to make their coordination a little less painful. */+ --compose-formatting-buttons-row-height: 2em;/*Width of the area where the compose box buttons are placed, "inside"diff --git a/web/styles/compose.css b/web/styles/compose.cssindex 6c31893f7c4..888f618b63e 100644--- a/web/styles/compose.css+++ b/web/styles/compose.css@@ -1071,15 +1071,20 @@ textarea.new_message_textarea {align-items: center;.compose_control_button {- height: var(--compose-formatting-buttons-row-height);- width: 30px;+ /* 22px at 14px/1em */+ font-size: 1.5714em;+ /* Coordinate with the value of+ --compose-formatting-buttons-row-height */+ /* 28px at 22px/1em */+ height: 1.2727em;+ /* 30px at 22px/1em */+ width: 1.3636em;display: flex;align-items: center;justify-content: center;opacity: 0.7;color: inherit;text-decoration: none;- font-size: 22px;&:hover {opacity: 1;@@ -1113,7 +1118,12 @@ textarea.new_message_textarea {.compose_control_menu {padding: 0 1px;- font-size: 18px;+ /* 18px at 14px/1em */+ font-size: 1.2957em;+ /* Coordinate with the value of+ --compose-formatting-buttons-row-height */+ /* 28px at 18px/1em */+ height: 1.5556em;}.compose_control_menu_wrapper {@@ -1149,9 +1159,13 @@ textarea.new_message_textarea {.divider {color: hsl(0deg 0% 75%);- font-size: 20px;+ /* 20px at 14px/1em */+ font-size: 1.4286em;margin: 0 3px;- height: var(--compose-formatting-buttons-row-height);+ /* Coordinate with the value of+ --compose-formatting-buttons-row-height */+ /* 28px at 20px/1em */+ height: 1.4em;}.compose_draft_button {