mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-31 06:40:39 +00:00
feat: style: optimize code
This commit is contained in:
parent
2ac1e5c3f5
commit
abc0e3650b
@ -111,8 +111,8 @@ class HistoryVersion extends React.Component {
|
||||
{path[2] > 0 && (<div className="daily-history-detail-no-more"></div>)}
|
||||
<div className="history-info">
|
||||
{this.state.isRenameShow ?
|
||||
<Rename name={name} onRenameConfirm={this.onRenameConfirm} onRenameCancel={this.onRenameCancel} />
|
||||
: <div className="name">{name}</div>
|
||||
<Rename name={name} onRenameConfirm={this.onRenameConfirm} onRenameCancel={this.onRenameCancel}/>
|
||||
:<div className="name">{name}</div>
|
||||
}
|
||||
<div className="time">{moment(ctime).format('YYYY-MM-DD HH:mm')}</div>
|
||||
<div className="owner">
|
||||
@ -170,7 +170,8 @@ class HistoryVersion extends React.Component {
|
||||
{(path[0] !== 0 && path[1] !== 0 && path[2] !== 0) && <DropdownItem onClick={this.onItemCopy}>{gettext('Copy')}</DropdownItem>}
|
||||
<DropdownItem onClick={this.toggleRename}>{gettext('Rename')}</DropdownItem>
|
||||
</DropdownMenu>
|
||||
</Dropdown>)}
|
||||
</Dropdown>
|
||||
)}
|
||||
</div>
|
||||
</li>
|
||||
);
|
||||
|
@ -1634,4 +1634,3 @@ export const Utils = {
|
||||
};
|
||||
|
||||
export const isMobile = (typeof (window) !== 'undefined') && (window.innerWidth < 768 || navigator.userAgent.toLowerCase().match(/(ipod|ipad|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i) != null);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user