From 398cb4228e7182c048aa9d50d7a6e17d0cf267e7 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 26 May 2023 17:01:14 +0100 Subject: [PATCH 1/2] Fix layout regression in session dropdown --- res/css/views/elements/_Dropdown.pcss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/res/css/views/elements/_Dropdown.pcss b/res/css/views/elements/_Dropdown.pcss index 23edac35cf4..891f85dc919 100644 --- a/res/css/views/elements/_Dropdown.pcss +++ b/res/css/views/elements/_Dropdown.pcss @@ -121,6 +121,12 @@ input.mx_Dropdown_option:focus { min-height: 35px; } +.mx_Dropdown_menu li.mx_Dropdown_option { + margin: 0; + padding: 0; + list-style: none; +} + .mx_Dropdown_menu .mx_Dropdown_option_highlight { background-color: $focus-bg-color; } From 80687f2a4a8e46bca6f2062454685b1dc3914a45 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 26 May 2023 17:05:16 +0100 Subject: [PATCH 2/2] Fix layout regression in session dropdown --- res/css/views/elements/_Dropdown.pcss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/res/css/views/elements/_Dropdown.pcss b/res/css/views/elements/_Dropdown.pcss index 891f85dc919..4060dab1761 100644 --- a/res/css/views/elements/_Dropdown.pcss +++ b/res/css/views/elements/_Dropdown.pcss @@ -58,8 +58,8 @@ limitations under the License. .mx_Dropdown_option { height: 35px; line-height: $font-35px; - padding-left: 8px; - padding-right: 8px; + // Overwrites the default padding for any li elements + padding: 0 8px; } .mx_Dropdown_input > .mx_Dropdown_option { @@ -121,9 +121,7 @@ input.mx_Dropdown_option:focus { min-height: 35px; } -.mx_Dropdown_menu li.mx_Dropdown_option { - margin: 0; - padding: 0; +ul.mx_Dropdown_menu li.mx_Dropdown_option { list-style: none; }