1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 15:53:28 +00:00

Add dir operation icon (#7515)

This commit is contained in:
Michael An
2025-02-25 11:33:22 +08:00
committed by GitHub
parent 2b297f4f77
commit 4385020918
3 changed files with 12 additions and 5 deletions

View File

@@ -293,7 +293,8 @@ class DirOperationToolbar extends React.Component {
data-toggle="dropdown"
>
{this.props.children}
<i className="sf3-font-down sf3-font ml-1 path-item-dropdown-toggle"></i>
<i className="sf3-font-new sf3-font ml-2"></i>
<i className="sf3-font-down sf3-font path-item-dropdown-toggle"></i>
</DropdownToggle>
<DropdownMenu onMouseMove={this.onDropDownMouseMove} positionFixed={true}>
{opList.map((item, index) => {
@@ -351,7 +352,8 @@ class DirOperationToolbar extends React.Component {
className="path-item"
>
{this.props.children}
<i className="sf3-font-down sf3-font ml-1 path-item-dropdown-toggle"></i>
<i className="sf3-font-new sf3-font ml-2"></i>
<i className="sf3-font-down sf3-font path-item-dropdown-toggle"></i>
</DropdownToggle>
<DropdownMenu positionFixed={true}>
{canUpload && (

View File

@@ -316,9 +316,14 @@
display: inline-block;
}
.dir-view-path .sf3-font-new,
.dir-view-path .path-item-dropdown-toggle {
color: #666;
}
.dir-view-path .path-item-dropdown-toggle {
margin-top: 2px;
margin-left: 2px;
}
.dir-view-path .path-item-drop {

View File

@@ -213,11 +213,11 @@ export const Utils = {
const file_ext = filename.substr(filename.lastIndexOf('.') + 1).toLowerCase();
if (enableOnlyoffice) {
return onlyofficeEditFileExtension.includes(file_ext);
return onlyofficeEditFileExtension.includes(file_ext);
} else if (enableOfficeWebApp) {
return officeWebAppEditFileExtension.includes(file_ext);
return officeWebAppEditFileExtension.includes(file_ext);
} else {
return false;
return false;
}
},