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

fix markdown file dropdown style (#6626)

This commit is contained in:
Michael An
2024-08-23 16:44:50 +08:00
committed by GitHub
parent adf91f0ad8
commit 6b49bb9175
2 changed files with 6 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ class ViewFileToolbar extends React.Component {
return (
<Fragment>
{opList.length > 0 &&
<Dropdown isOpen={this.state.isDropdownMenuOpen} toggle={this.toggleDropdownMenu}>
<Dropdown isOpen={this.state.isDropdownMenuOpen} toggle={this.toggleDropdownMenu} className="view-file-toolbar-dropdown">
<DropdownToggle
tag="div"
role="button"
@@ -159,7 +159,7 @@ class ViewFileToolbar extends React.Component {
{this.props.children}
<i className="sf3-font-down sf3-font ml-1 path-item-dropdown-toggle"></i>
</DropdownToggle>
<DropdownMenu onMouseMove={this.onDropDownMouseMove}>
<DropdownMenu positionFixed={true} onMouseMove={this.onDropDownMouseMove}>
{opList.map((item, index) => {
if (item == 'Divider') {
return <DropdownItem key={index} divider />;

View File

@@ -304,6 +304,10 @@
flex-shrink: 0;
}
.dir-view-path .view-file-toolbar-dropdown {
height: 24px;
}
.custom-modal {
box-sizing: border-box;
font-size: 0.875rem;