button.appendTo($container);
const $ui = $("<div>")
- .attr("class", uiClass + "-ui");
-
- $("<div class='d-flex p-3 pb-0'>")
- .appendTo($ui)
- .append($("<h2 class='flex-grow-1 text-break'>")
- .text(I18n.t(paneTitle)))
- .append($("<div>")
- .append($("<button type='button' class='btn-close'>")
- .attr("aria-label", I18n.t("javascripts.close"))
- .bind("click", toggle)));
+ .attr("class", `${uiClass}-ui position-relative z-n1`);
+
+ $("<h2 class='p-3 pb-0 pe-5 text-break'>")
+ .text(I18n.t(paneTitle))
+ .appendTo($ui);
options.sidebar.addPane($ui);