From 285979b68d649a0307ac7f42c730666c176b0ec8 Mon Sep 17 00:00:00 2001 From: Ghighi Eftimie Date: Mon, 4 Dec 2023 16:00:00 +0200 Subject: [PATCH 1/2] fix for 2931 --- cps/static/css/caliBlur.css | 9 +++++---- cps/static/js/caliBlur.js | 7 +++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/cps/static/css/caliBlur.css b/cps/static/css/caliBlur.css index cf743761..60a5e4c5 100644 --- a/cps/static/css/caliBlur.css +++ b/cps/static/css/caliBlur.css @@ -3296,6 +3296,7 @@ div.btn-group[role=group][aria-label="Download, send to Kindle, reading"] .dropd left: 0 !important; } #add-to-shelves { + min-height: 48px; max-height: calc(100% - 120px); overflow-y: auto; } @@ -4812,8 +4813,8 @@ body.advsearch:not(.blur) > div.container-fluid > div.row-fluid > div.col-sm-10 z-index: 999999999999999999999999999999999999 } -.search #shelf-actions, body.login .home-btn { - display: none +.search #shelf-actions button#add-to-shelf { + height: 40px; } body.read:not(.blur) a[href*=readbooks] { @@ -5134,7 +5135,7 @@ body.login > div.navbar.navbar-default.navbar-static-top > div > div.navbar-head right: 5px } -#shelf-actions > .btn-group.open, .downloadBtn.open, .profileDrop[aria-expanded=true] { +body:not(.search) #shelf-actions > .btn-group.open, .downloadBtn.open, .profileDrop[aria-expanded=true] { pointer-events: none } @@ -5151,7 +5152,7 @@ body.login > div.navbar.navbar-default.navbar-static-top > div > div.navbar-head color: var(--color-primary) } -#shelf-actions, #shelf-actions > .btn-group, #shelf-actions > .btn-group > .empty-ul { +body:not(.search) #shelf-actions, body:not(.search) #shelf-actions > .btn-group, body:not(.search) #shelf-actions > .btn-group > .empty-ul { pointer-events: none } diff --git a/cps/static/js/caliBlur.js b/cps/static/js/caliBlur.js index cc4116cf..909a3d22 100755 --- a/cps/static/js/caliBlur.js +++ b/cps/static/js/caliBlur.js @@ -369,6 +369,13 @@ $("div.comments").readmore({ // End of Global Work // /////////////////////////////// +// Search Results +if($("body.search").length > 0) { + $('div[aria-label="Add to shelves"]').click(function () { + $("#add-to-shelves").toggle(); + }); +} + // Advanced Search Results if($("body.advsearch").length > 0) { $("#loader + .container-fluid") From 389e3f09f55ef24770293a09cc4ba27bbd07b25d Mon Sep 17 00:00:00 2001 From: Ghighi Eftimie Date: Mon, 4 Dec 2023 16:40:56 +0200 Subject: [PATCH 2/2] small fix for mobile resolution - add to shelf button --- cps/static/css/caliBlur.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cps/static/css/caliBlur.css b/cps/static/css/caliBlur.css index 60a5e4c5..3647b871 100644 --- a/cps/static/css/caliBlur.css +++ b/cps/static/css/caliBlur.css @@ -4813,9 +4813,15 @@ body.advsearch:not(.blur) > div.container-fluid > div.row-fluid > div.col-sm-10 z-index: 999999999999999999999999999999999999 } -.search #shelf-actions button#add-to-shelf { +body.search #shelf-actions button#add-to-shelf { height: 40px; } +@media screen and (max-width: 767px) { + body.search .discover, body.advsearch .discover { + display: flex; + flex-direction: column; + } +} body.read:not(.blur) a[href*=readbooks] { color: hsla(0, 0%, 100%, .7) !important