dropdown-list-widget: Remove dropdown-list-body class and reference.

Removes the "dropdown-list-body" class and references as it is no
longer used in the new DropdownWidget. The previous uses of the
class were removed in commit 875d564f2d.
This commit is contained in:
Lauryn Menard 2023-08-09 12:04:46 +02:00 committed by Tim Abbott
parent d24a689e9e
commit 225be0bb97
2 changed files with 2 additions and 43 deletions

View File

@ -302,11 +302,8 @@ export function initialize_kitchen_sink_stuff() {
// Ignore wheel events in the compose area which weren't already handled above. // Ignore wheel events in the compose area which weren't already handled above.
$("#compose").on("wheel", (e) => { $("#compose").on("wheel", (e) => {
// Except for the stream select dropdown and compose banners, which still needs scroll events. // Except for the compose banners, which still need scroll events.
if ( if ($(e.target).closest("#compose_banners").length) {
$(e.target).closest(".dropdown-list-body").length ||
$(e.target).closest("#compose_banners").length
) {
return; return;
} }
e.stopPropagation(); e.stopPropagation();

View File

@ -1586,44 +1586,6 @@ $option_title_width: 180px;
margin-top: 0; margin-top: 0;
display: block; display: block;
} }
.dropdown-list-body {
position: relative;
margin-top: 0;
display: block;
/* In bootstrap v2.3.2, we strictly need
.dropdown-menu > li > a as the order of the elements
for the bootstrap style to be applied.
Since we use a combination of dropdown + simplebar here,
the structure cannot be possible since simplebar inserts
elements of its own, so we copy over that style
from bootstrap to here. */
& li a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 20px;
color: hsl(0deg 0% 20%);
white-space: nowrap;
&:hover {
color: hsl(0deg 0% 100%);
text-decoration: none;
background-color: hsl(200deg 100% 38%);
background-image: linear-gradient(
to bottom,
hsl(200deg 100% 40%),
hsl(200deg 100% 35%)
);
}
&:focus {
text-decoration: none;
}
}
}
} }
.subsection-failed-status p { .subsection-failed-status p {