allineamento num versi, minimap per lista risultati

This commit is contained in:
cesare 2023-02-27 09:03:20 +01:00
parent 390496f570
commit 822dcb0fcb
2 changed files with 17 additions and 6 deletions

View File

@ -370,6 +370,7 @@ $(" ."+formaClass).hover(function(idx, element) {
if (!queryExecuted){ if (!queryExecuted){
$("#vistaFrasi").attr('style', 'display: d-flex;'); $("#vistaFrasi").attr('style', 'display: d-flex;');
manageMM("#vistaFrasi")
$(cantoDisplayed).css("display", "none"); $(cantoDisplayed).css("display", "none");
return return
} }
@ -453,6 +454,7 @@ $(" ."+formaClass).hover(function(idx, element) {
//visualizzo //visualizzo
$("#vistaFrasi").attr('style', 'display: d-flex;'); $("#vistaFrasi").attr('style', 'display: d-flex;');
manageMM("#vistaFrasi")
}); });
@ -767,8 +769,8 @@ $(" ."+formaClass).hover(function(idx, element) {
createSpanPeriodiTag(closeSTag, 'c', formaItem[2]-1, currSentenceId, elverso) createSpanPeriodiTag(closeSTag, 'c', formaItem[2]-1, currSentenceId, elverso)
currSentenceId=null currSentenceId=null
} }
elverso=createDivVersoNew(cantica, formaItem[3], 'Canto_' + formaItem[1]) //elverso=createDivVersoNew(cantica, formaItem[3], 'Canto_' + formaItem[1])
//elverso=createDivVersoLI(cantica, formaItem[3], 'Canto_' + formaItem[1]) elverso=createDivVersoLI(cantica, formaItem[3], 'Canto_' + formaItem[1])
setVersiCanto.add(cantica+ "_" + formaItem[3] + "_" + 'Canto_' + formaItem[1]) setVersiCanto.add(cantica+ "_" + formaItem[3] + "_" + 'Canto_' + formaItem[1])
} }
if(currSentenceId==null || currSentenceId != sentenceid){ if(currSentenceId==null || currSentenceId != sentenceid){
@ -849,13 +851,21 @@ $(" ."+formaClass).hover(function(idx, element) {
} }
function createDivVersoGenericLi(cantica, num, canto) { function createDivVersoGenericLi(cantica, num, canto) {
//let digits=num.length let digits=num.length
var spannum=$('<span />')
if (digits==1)
spannum.append('\xa0\xa0')
if (digits==2)
spannum.append('\xa0')
spannum.append(num+'. ')
var elementoverso = $('<li />') var elementoverso = $('<li />')
//var elementoverso=$('<p />')
//elementoverso.append(spannum)
elementoverso.attr("value", num) elementoverso.attr("value", num)
elementoverso.attr("style", "line-height: 1.0em") //elementoverso.attr("style", "line-height: 1.0em")
elementoverso.attr('class', 'f6 mb-1 text-muted text-nowrap font-weight-lighter ')//+cantica+' '+canto) elementoverso.attr('class', 'f6 mb-1 text-muted text-nowrap font-weight-lighter ')//+cantica+' '+canto)
//elementoverso.attr('class', 'text-nowrap ')//+cantica+' '+canto) //elementoverso.attr('class', 'text-nowrap ')//+cantica+' '+canto)

View File

@ -885,7 +885,8 @@ function _wrap_text_nchar(wrap_text_array){return(
if (!line_height) line_height = 1.0; if (!line_height) line_height = 1.0;
if (text_element.text().length>150) if (text_element.text().length>150)
line_height = 0.8 line_height = 0.8
if (text_element.text().includes("ordinata") || text_element.text().includes("parentetica")){ if (text_element.text().includes("ordinata") || text_element.text().includes("parentetica")
|| text_element.text().includes("rincipale")){
max_width=30 max_width=30
if (text_element.text().length>90) if (text_element.text().length>90)
line_height = 0.8 line_height = 0.8