mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 04:30:10 +01: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
@ -78,7 +78,7 @@ export default function FileRow({
|
|||||||
onMouseEnter={handleMouseEnter}
|
onMouseEnter={handleMouseEnter}
|
||||||
onMouseLeave={handleMouseLeave}
|
onMouseLeave={handleMouseLeave}
|
||||||
>
|
>
|
||||||
<p className="whitespace-nowrap overflow-hidden">
|
<p className="whitespace-nowrap overflow-hidden max-w-[165px] text-ellipsis">
|
||||||
{middleTruncate(item.title, 17)}
|
{middleTruncate(item.title, 17)}
|
||||||
</p>
|
</p>
|
||||||
{showTooltip && (
|
{showTooltip && (
|
||||||
|
@ -64,7 +64,7 @@ export default function WorkspaceFileRow({
|
|||||||
onMouseEnter={handleMouseEnter}
|
onMouseEnter={handleMouseEnter}
|
||||||
onMouseLeave={handleMouseLeave}
|
onMouseLeave={handleMouseLeave}
|
||||||
>
|
>
|
||||||
<p className="whitespace-nowrap overflow-hidden">
|
<p className="whitespace-nowrap overflow-hidden max-w-[165px] text-ellipsis">
|
||||||
{middleTruncate(item.title, 17)}
|
{middleTruncate(item.title, 17)}
|
||||||
</p>
|
</p>
|
||||||
{showTooltip && (
|
{showTooltip && (
|
||||||
|
Loading…
Reference in New Issue
Block a user