1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

change sdoc submenu direction (#7557)

* change sdoc submenu direction

* fix warnings
This commit is contained in:
Michael An
2025-03-05 12:43:04 +08:00
committed by GitHub
parent 4a4d28222b
commit a8785ec879
2 changed files with 35 additions and 6 deletions

View File

@@ -739,10 +739,26 @@ 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 sf3-font sf3-font-download1" 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>
)}
{(dirent.permission === 'rw' || dirent.permission === 'cloud-edit' || (isCustomPermission && canDelete)) && (
<a href="#" className="op-icon sf3-font-delete1 sf3-font" title={gettext('Delete')} role="button" aria-label={gettext('Delete')} onClick={this.onItemDelete}></a>
<a
href="#"
className="op-icon sf3-font-delete1 sf3-font"
title={gettext('Delete')}
role="button"
aria-label={gettext('Delete')}
onClick={this.onItemDelete}
>
</a>
)}
<ItemDropdownMenu
item={this.state.dirent}