diff --git a/css/custom1_4.2.css b/css/custom1_4.2.css index 3629c1a..083f144 100644 --- a/css/custom1_4.2.css +++ b/css/custom1_4.2.css @@ -44,8 +44,8 @@ html, body { #colMinimap { padding-top: 63px; min-height: 600px; - min-width: 110px !important; - width: 110px !important; + min-width: 111px !important; + width: 111px !important; border-right-width: 2px !important; border-bottom-width: 2px !important; } @@ -93,6 +93,18 @@ html, body { border-bottom-left-radius: 0 !important; } + +.page-link { + position: relative; + display: block; + padding: 0.5rem 0.75rem; + margin-left: -1px; + line-height: 1.25; + color: #5f8ec2; + background-color: #fff; + border: 1px solid #dee2e6; +} + .lista-risultati:hover, .citazioneFrase:hover { cursor: pointer; } @@ -326,7 +338,8 @@ li::marker { } .minimap__viewer { - border-color: #5f8ec2; + border-color: rgba(203, 203, 192, 1); + background-color: rgba(203, 203, 192, 0.5); } /* ------- $success rgb(117, 159, 154) / #759F9A , #DEE2E6 -------- */ diff --git a/css/custom2_4.2.css b/css/custom2_4.2.css index cfa500b..11c4c6a 100644 --- a/css/custom2_4.2.css +++ b/css/custom2_4.2.css @@ -334,7 +334,9 @@ li::marker { } .minimap__viewer { - border-color: #734450; +/* border-color: #734450; */ + border-color: rgba(222, 226, 230, 1); + background-color: rgba(222, 226, 230, 0.5); } /* ------- $success rgb(5, 74, 41) / #054a29 , #DEE2E6 -------- */ diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js index 332ade4..fe5e4ac 100644 --- a/js/cesareBrowse.js +++ b/js/cesareBrowse.js @@ -764,7 +764,7 @@ function resetFrasi(){ } function cleanSearchResult() { - + let updateMap=false $("#headingZero").closest('.card').css("display", "none"); $("#collapseZero").collapse('hide'); $("#vistaFrasi").empty() @@ -797,12 +797,18 @@ function resetFrasi(){ listaPeriodiRisultato=[] listaClausoleRisultato=[] resultSentences=new Set() - if(cantoDisplayed=='#vistaFrasi') + + if(cantoDisplayed=='#vistaFrasi'){ cantoDisplayed=prevCantoDisplayed + updateMap=true + } + $(cantoDisplayed).attr('style', 'display: d-flex;'); //manageMM (cantoDisplayed) currPage = 0; - drawMinimap(cantoDisplayed) + if (updateMap) + drawMinimap(cantoDisplayed) + } function manageMM(name){ diff --git a/js/minimap.js b/js/minimap.js index 5052ca5..c4e784d 100644 --- a/js/minimap.js +++ b/js/minimap.js @@ -44,7 +44,7 @@ function drawMinimap(name, onlyContent = false){ //scrollCorrectionFactor = 1; } else { correctionFactor = 1; - scrollCorrectionFactor = 1.003; + scrollCorrectionFactor = 0.997; }; initOffset = parseInt($("body").css("padding-top").replace("px", ""))+63; @@ -145,7 +145,7 @@ function showMinimap(onlyContent) { } let viewerHeight = (miniCantoHeight*realScale*heightRatio/correctionFactor)-2; // -2 = bordi - let viewerWidth = Math.min(viewerHeight/resizableRatio, maxWidth-2); // -2 bordi + let viewerWidth = Math.min(viewerHeight/resizableRatio, maxWidth-3)+2; // -3 bordi var displayminimapHeight = (miniCantoHeight*realScale)+6; //var displayminimapHeight = Math.min((miniCantoHeight*realScale)+6,maxHeight);