diff --git a/src/Dashboard/Dashboard.ts b/src/Dashboard/Dashboard.ts index 6bc59c049..492206dfa 100644 --- a/src/Dashboard/Dashboard.ts +++ b/src/Dashboard/Dashboard.ts @@ -1,6 +1,5 @@ import { IEntry, IFile, IFolder, FileSystemTools } from './FileSystem'; import { deleteDocument, updateDocName } from './Storage'; -import { formatFilename } from './UploadTools'; import { FileSystemManager } from './FileSystem'; import { ShiftSelectionManager, dashboardState } from './DashboardTools'; import { InitUploadArea } from './UploadArea'; @@ -170,7 +169,7 @@ function createTile(entry: IEntry) { const icon = document.createElement('img'); icon.classList.add('document-icon'); const name = document.createElement('div'); - name.innerText = formatFilename(entry.name, 25); + name.innerText = entry.name; switch (entry.type) { case 'folder': diff --git a/src/Dashboard/UploadTools.ts b/src/Dashboard/UploadTools.ts index 2828878c0..e63f133f3 100644 --- a/src/Dashboard/UploadTools.ts +++ b/src/Dashboard/UploadTools.ts @@ -58,7 +58,7 @@ function createUnpairedItem(filename: string, group: string): HTMLDivElement { label.setAttribute('for', id); const text = document.createElement('span'); - text.innerText = formatFilename(filename, 28); + text.innerText = formatFilename(filename, 50); text.setAttribute('style', 'margin-top: auto'); const delBtn = document.createElement('img'); @@ -110,7 +110,7 @@ function createPairedFolio(filename: string, mei_filename: string, image_filenam const folio_filename = document.createElement('div'); folio_filename.classList.add('folio-filename'); - folio_filename.innerHTML = formatFilename(filename, 25); + folio_filename.innerHTML = formatFilename(filename, 50); folio.appendChild(folio_filename); function handleUnpair() {