mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
Fix file name/folder name truncation (#2456)
fix filename/foldername truncation Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
parent
52f2f87179
commit
15ca5e8103
3 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ export default function FileRow({ item, selected, toggleSelection }) {
|
|||
className="shrink-0 text-base font-bold w-4 h-4 mr-[3px]"
|
||||
weight="fill"
|
||||
/>
|
||||
<p className="whitespace-nowrap overflow-hidden text-ellipsis">
|
||||
<p className="whitespace-nowrap overflow-hidden text-ellipsis max-w-[400px]">
|
||||
{middleTruncate(item.title, 55)}
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -51,7 +51,7 @@ export default function FolderRow({
|
|||
className="shrink-0 text-base font-bold w-4 h-4 mr-[3px]"
|
||||
weight="fill"
|
||||
/>
|
||||
<p className="whitespace-nowrap overflow-show">
|
||||
<p className="whitespace-nowrap overflow-show max-w-[400px]">
|
||||
{middleTruncate(item.name, 35)}
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -83,7 +83,7 @@ export default function WorkspaceFileRow({
|
|||
className="shrink-0 text-base font-bold w-4 h-4 mr-[3px] ml-1"
|
||||
weight="fill"
|
||||
/>
|
||||
<p className="whitespace-nowrap overflow-hidden text-ellipsis">
|
||||
<p className="whitespace-nowrap overflow-hidden text-ellipsis max-w-[400px]">
|
||||
{middleTruncate(item.title, 50)}
|
||||
</p>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue