1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 17:40:31 +00:00

Possible fix for #2003 (Calibre theme download icon broken)

This commit is contained in:
Ozzie Isaacs 2021-06-03 12:35:09 +02:00
parent a79600c81f
commit aadd6fd7e0

View File

@ -412,7 +412,7 @@ if($("body.advsearch").length > 0) {
$("#add-to-shelves").toggle();
});
$('#add-to-shelf').height("40px");
function dropdownToggle() {
function search_dropdownToggle() {
topPos = $("#add-to-shelf").offset().top-20;
if ($('div[aria-label="Add to shelves"]').length > 0) {
@ -428,10 +428,10 @@ if($("body.advsearch").length > 0) {
}
}
dropdownToggle();
search_dropdownToggle();
$(window).on("resize", function () {
dropdownToggle();
search_dropdownToggle();
});
}