mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
fix truncate function to handle Chinese characters (#677)
* fix truncate function to handle Chinese characters * revert changes to truncate function and cut off title using css * add CSS ellipse on long file name * fix uploaded middleTruncation as well as directory --------- Co-authored-by: timothycarambat <rambat1010@gmail.com>
This commit is contained in:
parent
608f28d745
commit
b94da205a5
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ export default function FileRow({
|
|||
onMouseEnter={handleMouseEnter}
|
||||
onMouseLeave={handleMouseLeave}
|
||||
>
|
||||
<p className="whitespace-nowrap overflow-hidden">
|
||||
<p className="whitespace-nowrap overflow-hidden max-w-[165px] text-ellipsis">
|
||||
{middleTruncate(item.title, 17)}
|
||||
</p>
|
||||
{showTooltip && (
|
||||
|
|
|
@ -64,7 +64,7 @@ export default function WorkspaceFileRow({
|
|||
onMouseEnter={handleMouseEnter}
|
||||
onMouseLeave={handleMouseLeave}
|
||||
>
|
||||
<p className="whitespace-nowrap overflow-hidden">
|
||||
<p className="whitespace-nowrap overflow-hidden max-w-[165px] text-ellipsis">
|
||||
{middleTruncate(item.title, 17)}
|
||||
</p>
|
||||
{showTooltip && (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue