1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 23:29:49 +00:00

[long name] fixup for UIs with long library/folder/file names (#5971)

* [long name] fixup for UIs with long library/folder/file names

* fixed code indentation
This commit is contained in:
llj
2024-03-07 15:37:09 +08:00
committed by GitHub
parent 9281a14634
commit 046aa47022
24 changed files with 112 additions and 84 deletions

View File

@@ -7,7 +7,7 @@ const {
function Download() {
return (
<a href={`${siteRoot}repo/${repoID}/${objID}/download/?file_name=${encodeURIComponent(fileName)}&p=${encodeURIComponent(path)}`} className="btn btn-secondary">{gettext('Download')}</a>
<a href={`${siteRoot}repo/${repoID}/${objID}/download/?file_name=${encodeURIComponent(fileName)}&p=${encodeURIComponent(path)}`} className="btn btn-secondary flex-shrink-0">{gettext('Download')}</a>
);
}

View File

@@ -26,10 +26,10 @@ class FileView extends React.Component {
render() {
return (
<div className="h-100 d-flex flex-column flex-1">
<div className="h-100 d-flex flex-column flex-1 mw-100">
<div className="file-view-header d-flex justify-content-between align-items-center">
<div>
<h2 className="file-title">{fileName}</h2>
<div className="text-truncate mr-4">
<h2 className="file-title text-truncate" title={fileName}>{fileName}</h2>
<p className="meta-info m-0">{fromTrash ? `${gettext('Current Path: ')}${gettext('Trash')}`: commitTime}</p>
</div>
{canDownloadFile && <Download />}