diff options
Diffstat (limited to 'frontend/components/drive/DriveDirectoryClient.tsx')
| -rw-r--r-- | frontend/components/drive/DriveDirectoryClient.tsx | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/frontend/components/drive/DriveDirectoryClient.tsx b/frontend/components/drive/DriveDirectoryClient.tsx index eee83c3..8a53123 100644 --- a/frontend/components/drive/DriveDirectoryClient.tsx +++ b/frontend/components/drive/DriveDirectoryClient.tsx | |||
| @@ -480,32 +480,38 @@ export function DriveDirectoryClient({ path, files, breadcrumbs }: DriveDirector | |||
| 480 | /> | 480 | /> |
| 481 | </TableCell> | 481 | </TableCell> |
| 482 | <TableCell className="font-medium"> | 482 | <TableCell className="font-medium"> |
| 483 | <div className="flex items-center gap-2"> | 483 | <div className="flex items-center gap-2 min-w-0"> |
| 484 | {file.type === "dir" ? ( | 484 | {file.type === "dir" ? ( |
| 485 | <> | 485 | <> |
| 486 | <Folder className="h-4 w-4 text-blue-500" /> | 486 | <Folder className="h-4 w-4 text-blue-500 flex-shrink-0" /> |
| 487 | <Link | 487 | <div className="min-w-0 max-w-[60vw]"> |
| 488 | href={`/drive${file.path}`} | 488 | <Link |
| 489 | className="text-blue-600 hover:text-blue-800 hover:underline cursor-pointer" | 489 | href={`/drive${file.path}`} |
| 490 | > | 490 | className="text-blue-600 hover:text-blue-800 hover:underline cursor-pointer block truncate" |
| 491 | {fileName} | 491 | title={fileName} |
| 492 | </Link> | 492 | > |
| 493 | {fileName} | ||
| 494 | </Link> | ||
| 495 | </div> | ||
| 493 | </> | 496 | </> |
| 494 | ) : ( | 497 | ) : ( |
| 495 | <> | 498 | <> |
| 496 | <File className="h-4 w-4 text-gray-500" /> | 499 | <File className="h-4 w-4 text-gray-500 flex-shrink-0" /> |
| 497 | {file.blob ? ( | 500 | <div className="min-w-0 max-w-[60vw]"> |
| 498 | <a | 501 | {file.blob ? ( |
| 499 | href={`/blob/${file.blob}?filename=${encodeURIComponent(fileName)}`} | 502 | <a |
| 500 | className="text-blue-600 hover:text-blue-800 hover:underline cursor-pointer" | 503 | href={`/blob/${file.blob}?filename=${encodeURIComponent(fileName)}`} |
| 501 | target="_blank" | 504 | className="text-blue-600 hover:text-blue-800 hover:underline cursor-pointer block truncate" |
| 502 | rel="noopener noreferrer" | 505 | target="_blank" |
| 503 | > | 506 | rel="noopener noreferrer" |
| 504 | {fileName} | 507 | title={fileName} |
| 505 | </a> | 508 | > |
| 506 | ) : ( | 509 | {fileName} |
| 507 | <span>{fileName}</span> | 510 | </a> |
| 508 | )} | 511 | ) : ( |
| 512 | <span className="block truncate" title={fileName}>{fileName}</span> | ||
| 513 | )} | ||
| 514 | </div> | ||
| 509 | </> | 515 | </> |
| 510 | )} | 516 | )} |
| 511 | </div> | 517 | </div> |
