1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-11 11:52:08 +00:00

change dir operation icon style (#7522)

This commit is contained in:
Michael An 2025-02-26 13:05:24 +08:00 committed by GitHub
parent 0035fd0f04
commit a3a609d89d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -300,8 +300,7 @@ class DirOperationToolbar extends React.Component {
onKeyDown={this.onDropdownToggleKeyDown} onKeyDown={this.onDropdownToggleKeyDown}
data-toggle="dropdown" data-toggle="dropdown"
> >
{this.props.children} <i className="sf3-font-new sf3-font"></i>
<i className="sf3-font-new sf3-font ml-2"></i>
<i className="sf3-font-down sf3-font path-item-dropdown-toggle"></i> <i className="sf3-font-down sf3-font path-item-dropdown-toggle"></i>
</DropdownToggle> </DropdownToggle>
<DropdownMenu onMouseMove={this.onDropDownMouseMove} positionFixed={true}> <DropdownMenu onMouseMove={this.onDropDownMouseMove} positionFixed={true}>
@ -359,8 +358,7 @@ class DirOperationToolbar extends React.Component {
role="button" role="button"
className="path-item" className="path-item"
> >
{this.props.children} <i className="sf3-font-new sf3-font"></i>
<i className="sf3-font-new sf3-font ml-2"></i>
<i className="sf3-font-down sf3-font path-item-dropdown-toggle"></i> <i className="sf3-font-down sf3-font path-item-dropdown-toggle"></i>
</DropdownToggle> </DropdownToggle>
<DropdownMenu positionFixed={true}> <DropdownMenu positionFixed={true}>
@ -382,6 +380,7 @@ class DirOperationToolbar extends React.Component {
<Fragment> <Fragment>
{isShowDropdownMenu && ( {isShowDropdownMenu && (
<div className="dir-operation"> <div className="dir-operation">
{this.props.children}
{content} {content}
</div> </div>
)} )}

View File

@ -280,6 +280,11 @@
align-items: center; align-items: center;
} }
.dir-view-path .dir-operation>.path-repo-name,
.dir-view-path .dir-operation>.path-file-name {
margin: 0 6px;
}
.dir-view-path .dir-operation.dir-operation-no-dropdown { .dir-view-path .dir-operation.dir-operation-no-dropdown {
margin-left: 6px; margin-left: 6px;
} }