This commit is contained in:
Luca Trupiano 2023-03-20 10:01:49 +01:00
commit 7c3480a8ab
4 changed files with 30 additions and 9 deletions

View File

@ -44,8 +44,8 @@ html, body {
#colMinimap { #colMinimap {
padding-top: 63px; padding-top: 63px;
min-height: 600px; min-height: 600px;
min-width: 110px !important; min-width: 111px !important;
width: 110px !important; width: 111px !important;
border-right-width: 2px !important; border-right-width: 2px !important;
border-bottom-width: 2px !important; border-bottom-width: 2px !important;
} }
@ -93,6 +93,18 @@ html, body {
border-bottom-left-radius: 0 !important; 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 { .lista-risultati:hover, .citazioneFrase:hover {
cursor: pointer; cursor: pointer;
} }
@ -326,7 +338,8 @@ li::marker {
} }
.minimap__viewer { .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 -------- */ /* ------- $success rgb(117, 159, 154) / #759F9A , #DEE2E6 -------- */

View File

@ -334,7 +334,9 @@ li::marker {
} }
.minimap__viewer { .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 -------- */ /* ------- $success rgb(5, 74, 41) / #054a29 , #DEE2E6 -------- */

View File

@ -764,7 +764,7 @@ function resetFrasi(){
} }
function cleanSearchResult() { function cleanSearchResult() {
let updateMap=false
$("#headingZero").closest('.card').css("display", "none"); $("#headingZero").closest('.card').css("display", "none");
$("#collapseZero").collapse('hide'); $("#collapseZero").collapse('hide');
$("#vistaFrasi").empty() $("#vistaFrasi").empty()
@ -797,12 +797,18 @@ function resetFrasi(){
listaPeriodiRisultato=[] listaPeriodiRisultato=[]
listaClausoleRisultato=[] listaClausoleRisultato=[]
resultSentences=new Set() resultSentences=new Set()
if(cantoDisplayed=='#vistaFrasi')
if(cantoDisplayed=='#vistaFrasi'){
cantoDisplayed=prevCantoDisplayed cantoDisplayed=prevCantoDisplayed
updateMap=true
}
$(cantoDisplayed).attr('style', 'display: d-flex;'); $(cantoDisplayed).attr('style', 'display: d-flex;');
//manageMM (cantoDisplayed) //manageMM (cantoDisplayed)
currPage = 0; currPage = 0;
drawMinimap(cantoDisplayed) if (updateMap)
drawMinimap(cantoDisplayed)
} }
function manageMM(name){ function manageMM(name){

View File

@ -44,7 +44,7 @@ function drawMinimap(name, onlyContent = false){
//scrollCorrectionFactor = 1; //scrollCorrectionFactor = 1;
} else { } else {
correctionFactor = 1; correctionFactor = 1;
scrollCorrectionFactor = 1.003; scrollCorrectionFactor = 0.997;
}; };
initOffset = parseInt($("body").css("padding-top").replace("px", ""))+63; 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 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 = (miniCantoHeight*realScale)+6;
//var displayminimapHeight = Math.min((miniCantoHeight*realScale)+6,maxHeight); //var displayminimapHeight = Math.min((miniCantoHeight*realScale)+6,maxHeight);