Skip to content
Snippets Groups Projects
Unverified Commit b94da205 authored by Sean Hatfield's avatar Sean Hatfield Committed by GitHub
Browse files

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: default avatartimothycarambat <rambat1010@gmail.com>
parent 608f28d7
No related branches found
No related tags found
No related merge requests found
......@@ -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 && (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment