mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 03:47:09 +00:00
12.0 change some icons (#6278)
* 01 history back icon * 02 change download icons * 03 fix code format * 04 change copy icons * 05 tree icon more color * change icon
This commit is contained in:
@@ -634,7 +634,7 @@ class DirentListItem extends React.Component {
|
||||
{this.state.isOperationShow && !dirent.isSelected &&
|
||||
<div className="operations">
|
||||
{(dirent.permission === 'rw' || dirent.permission === 'r' || (isCustomPermission && canDownload)) && (
|
||||
<a href="#" className="op-icon sf2-icon-download" title={gettext('Download')} role="button" aria-label={gettext('Download')} onClick={this.onItemDownload}></a>
|
||||
<a href="#" className="op-icon sf3-font sf3-font-download1" title={gettext('Download')} role="button" aria-label={gettext('Download')} onClick={this.onItemDownload}></a>
|
||||
)}
|
||||
{showShareBtn && (
|
||||
<a href="#" className="op-icon sf3-font-share sf3-font" title={gettext('Share')} role="button" aria-label={gettext('Share')} onClick={this.onItemShare}></a>
|
||||
@@ -657,7 +657,7 @@ class DirentListItem extends React.Component {
|
||||
{this.state.isOperationShow &&
|
||||
<div className="operations">
|
||||
{(dirent.permission === 'rw' || dirent.permission === 'r' || (isCustomPermission && canDownload)) && (
|
||||
<a href="#" className="op-icon sf2-icon-download" title={gettext('Download')} role="button" aria-label={gettext('Download')} onClick={this.onItemDownload}></a>
|
||||
<a href="#" className="op-icon sf3-font sf3-font-download1" title={gettext('Download')} role="button" aria-label={gettext('Download')} onClick={this.onItemDownload}></a>
|
||||
)}
|
||||
{showShareBtn && (
|
||||
<a href="#" className="op-icon sf3-font-share sf3-font" title={gettext('Share')} role="button" aria-label={gettext('Share')} onClick={this.onItemShare}></a>
|
||||
|
@@ -38,7 +38,7 @@ class LinkItem extends React.Component {
|
||||
|
||||
cutLink = (link) => {
|
||||
let length = link.length;
|
||||
return link.slice(0, 9) + '...' + link.slice(length-5);
|
||||
return link.slice(0, 9) + '...' + link.slice(length - 5);
|
||||
};
|
||||
|
||||
onDeleteIconClicked = (e) => {
|
||||
@@ -109,8 +109,8 @@ class LinkItem extends React.Component {
|
||||
{expire_date ? moment(expire_date).format('YYYY-MM-DD HH:mm') : '--'}
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" role="button" onClick={this.onCopyIconClicked} className={`sf2-icon-copy action-icon ${isItemOpVisible ? '' : 'invisible'}`} title={gettext('Copy')} aria-label={gettext('Copy')}></a>
|
||||
<a href="#" role="button" onClick={this.onDeleteIconClicked} className={`sf3-font-delete1 sf3-font action-icon ${isItemOpVisible ? '' : 'invisible'}`} title={gettext('Delete')} aria-label={gettext('Delete')}></a>
|
||||
<a href="#" role="button" onClick={this.onCopyIconClicked} className={`sf3-font sf3-font-copy1 action-icon op-icon ${isItemOpVisible ? '' : 'invisible'}`} title={gettext('Copy')} aria-label={gettext('Copy')}></a>
|
||||
<a href="#" role="button" onClick={this.onDeleteIconClicked} className={`sf3-font-delete1 sf3-font action-icon op-icon ${isItemOpVisible ? '' : 'invisible'}`} title={gettext('Delete')} aria-label={gettext('Delete')}></a>
|
||||
</td>
|
||||
</tr>
|
||||
{this.state.isDeleteShareLinkDialogOpen && (
|
||||
|
@@ -108,8 +108,3 @@
|
||||
.tree-section .tree-section-body .right-icon i {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.tree-section .tree-section-body .sf-dropdown-toggle:focus,
|
||||
.tree-section .tree-section-body .sf-dropdown-toggle:hover {
|
||||
color: #999;
|
||||
}
|
||||
|
Reference in New Issue
Block a user