1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 18:03:48 +00:00

[long name] fixup for repo/folder share/upload link pages with long library/folder/file names (#5990)

This commit is contained in:
llj
2024-03-22 12:01:12 +08:00
committed by GitHub
parent b66db74a7e
commit 8c14e4abac
3 changed files with 7 additions and 7 deletions

View File

@@ -89,7 +89,7 @@ class SharedFileView extends React.Component {
if (index != zipped.length - 1) {
return (
<React.Fragment key={index}>
<a href={`${siteRoot}d/${sharedToken}/?p=${encodeURIComponent(item.path)}`}>{item.name}</a>
<a className="text-truncate mx-1" href={`${siteRoot}d/${sharedToken}/?p=${encodeURIComponent(item.path)}`} title={item.name}>{item.name}</a>
<span> / </span>
</React.Fragment>
);
@@ -97,7 +97,7 @@ class SharedFileView extends React.Component {
return null;
})
}
{zipped[zipped.length - 1].name}
<span className="text-truncate ml-1" title={zipped[zipped.length - 1].name}>{zipped[zipped.length - 1].name}</span>
</React.Fragment>
);
};
@@ -119,7 +119,7 @@ class SharedFileView extends React.Component {
<div className="text-truncate">
<h2 className="ellipsis" title={fileName}>{fileName}</h2>
{zipped ?
<p className="m-0">{gettext('Current path: ')}{this.renderPath()}</p> :
<p className="m-0 d-flex">{gettext('Current path: ')}{this.renderPath()}</p> :
<p className="share-by ellipsis">{gettext('Shared by:')}{' '}{sharedBy}</p>
}
</div>