mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-15 23:00:57 +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:
@@ -30,9 +30,9 @@ class FileInfo extends React.PureComponent {
|
||||
const starredText = isStarred ? gettext('starred') : gettext('unstarred');
|
||||
const lockedText = gettext('locked');
|
||||
return (
|
||||
<div>
|
||||
<div className="text-truncate">
|
||||
<h2 className="file-title d-flex align-items-center">
|
||||
<span className="file-name">{fileName}</span>
|
||||
<span className="file-name text-truncate" title={fileName}>{fileName}</span>
|
||||
<a className={`file-star ${isStarred ? 'fa' : 'far'} fa-star`}
|
||||
href="#"
|
||||
title={starredText}
|
||||
|
@@ -113,7 +113,7 @@ class FileToolbar extends React.Component {
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<ButtonGroup className="d-none d-md-block">
|
||||
<ButtonGroup className="d-none d-md-block flex-shrink-0 ml-4">
|
||||
{fileType == 'PDF' && (
|
||||
<IconButton
|
||||
id="seafile-pdf-print"
|
||||
@@ -202,7 +202,7 @@ class FileToolbar extends React.Component {
|
||||
</ButtonDropdown>
|
||||
</ButtonGroup>
|
||||
|
||||
<Dropdown isOpen={this.state.dropdownOpen} toggle={this.toggle} className="d-block d-md-none">
|
||||
<Dropdown isOpen={this.state.dropdownOpen} toggle={this.toggle} className="d-block d-md-none flex-shrink-0 ml-4">
|
||||
<ButtonGroup >
|
||||
{(canEditFile && fileType != 'SDoc' && !err) &&
|
||||
(this.props.isSaving ?
|
||||
|
Reference in New Issue
Block a user