From 7111d429e617e77466a05f89ec80a60fdffd417a Mon Sep 17 00:00:00 2001 From: Karl Stolley Date: Fri, 24 Jan 2025 07:31:58 -0600 Subject: [PATCH] compose: Size help-button icon to match other formatting buttons. Because button sizes are precisely specified in the area, we set the buttons as flex items that neither to grow or shrink, which is essential to right-size the button area for the help button. --- web/styles/compose.css | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/web/styles/compose.css b/web/styles/compose.css index ec97d93670..5792350b8c 100644 --- a/web/styles/compose.css +++ b/web/styles/compose.css @@ -1315,6 +1315,9 @@ textarea.new_message_textarea { height: 1.2727em; /* 30px at 22px/1em */ width: 1.3636em; + /* Adhere to the width of formatting buttons, + despite flexbox context. */ + flex: 0 0 auto; display: flex; align-items: center; justify-content: center; @@ -1377,18 +1380,6 @@ textarea.new_message_textarea { position: relative; top: 0.7px; } - - .compose_help_button { - /* 20px at 16px/1em */ - font-size: 1.25em; - /* 32px at 20px/1em */ - height: 1.6em; - /* 34.2833 at 20px/1em */ - width: 1.7142em; - /* Adhere to the width of this button, - despite flexbox context. */ - flex: 0 0 auto; - } } .less-dense-mode {