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:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -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 />}
|
||||
|
Reference in New Issue
Block a user