yangdx commited on
Commit
cfaf328
·
1 Parent(s): 3dc68a6

Optimize collum width

Browse files
lightrag_webui/src/features/DocumentManager.tsx CHANGED
@@ -358,12 +358,12 @@ export default function DocumentManager() {
358
  {Object.entries(docs.statuses).map(([status, documents]) =>
359
  documents.map((doc) => (
360
  <TableRow key={doc.id}>
361
- <TableCell className="truncate font-mono overflow-visible max-w-[200px]">
362
  {showFileName ? (
363
  <>
364
  <div className="group relative overflow-visible tooltip-container">
365
  <div className="truncate">
366
- {getDisplayFileName(doc, 25)}
367
  </div>
368
  <div className="invisible group-hover:visible absolute z-[9999] mt-1 max-w-[600px] whitespace-normal break-all rounded-md bg-black/95 px-3 py-2 text-sm text-white shadow-lg dark:bg-white/95 dark:text-black">
369
  {doc.file_path}
@@ -382,7 +382,7 @@ export default function DocumentManager() {
382
  </div>
383
  )}
384
  </TableCell>
385
- <TableCell className="max-w-xs min-w-48 truncate overflow-visible">
386
  <div className="group relative overflow-visible tooltip-container">
387
  <div className="truncate">
388
  {doc.content_summary}
 
358
  {Object.entries(docs.statuses).map(([status, documents]) =>
359
  documents.map((doc) => (
360
  <TableRow key={doc.id}>
361
+ <TableCell className="truncate font-mono overflow-visible max-w-[250px]">
362
  {showFileName ? (
363
  <>
364
  <div className="group relative overflow-visible tooltip-container">
365
  <div className="truncate">
366
+ {getDisplayFileName(doc, 30)}
367
  </div>
368
  <div className="invisible group-hover:visible absolute z-[9999] mt-1 max-w-[600px] whitespace-normal break-all rounded-md bg-black/95 px-3 py-2 text-sm text-white shadow-lg dark:bg-white/95 dark:text-black">
369
  {doc.file_path}
 
382
  </div>
383
  )}
384
  </TableCell>
385
+ <TableCell className="max-w-xs min-w-45 truncate overflow-visible">
386
  <div className="group relative overflow-visible tooltip-container">
387
  <div className="truncate">
388
  {doc.content_summary}