Skip to content

Commit

Permalink
Display full filename
Browse files Browse the repository at this point in the history
  • Loading branch information
yinanazhou committed Nov 27, 2023
1 parent 0cebf83 commit 7eb11da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Dashboard/Dashboard.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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':
Expand Down
4 changes: 2 additions & 2 deletions src/Dashboard/UploadTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 7eb11da

Please sign in to comment.