diff --git a/public/css/app.css b/public/css/app.css index 4c8e492..595ac3b 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -206,3 +206,11 @@ html.rtl .file-list-checkbox { .fullpage { min-height: calc(100dvh - 95px); } + +.clamp-2-lines { + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; + text-overflow: ellipsis; +} diff --git a/public/js/organization.js b/public/js/organization.js index f5d4bef..8302f61 100644 --- a/public/js/organization.js +++ b/public/js/organization.js @@ -49,8 +49,8 @@ async function loadPDF(pdfBlob, filename, pdfIndex) { let pageIndex = pdfLetter + "_" + (page.pageNumber - 1); pages[pageIndex] = page; const viewportFormat = page.getViewport({ scale: 1 }); - const widthFormat = Math.round(viewportFormat.width * 25.4 / 72); - const heightFormat = Math.round(viewportFormat.height * 25.4 / 72); + const widthFormat = points2mm(viewportFormat.width); + const heightFormat = points2mm(viewportFormat.height); const format = [widthFormat,heightFormat].sort().join('x') if(!formats[format]) { @@ -313,19 +313,26 @@ function updateListePDF() { } function updateFormats() { - document.querySelector('#list_formats').innerHTML = ""; - for (let format in formats) { - document.querySelector('#list_formats').insertAdjacentHTML('beforeend', '