1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 01:41:39 +00:00

01 change sort menu style (#6923)

This commit is contained in:
Michael An
2024-10-21 14:23:00 +08:00
committed by GitHub
parent ad5e54e5be
commit e3480b2a3c

View File

@@ -46,11 +46,9 @@ class ReposSortMenu extends React.Component {
<DropdownMenu right={true} className="mt-1"> <DropdownMenu right={true} className="mt-1">
{sortOptions.map((item, index) => { {sortOptions.map((item, index) => {
return ( return (
<DropdownItem key={index} onClick={this.props.onSelectSortOption.bind(this, item)}> <DropdownItem key={index} onClick={this.props.onSelectSortOption.bind(this, item)} className="pl-5 position-relative">
<div className="d-flex justify-content-between align-items-center"> {item.isSelected && <i className="dropdown-item-tick sf2-icon-tick"></i>}
<span className="mr-8">{item.text}</span> {item.text}
<span>{item.isSelected && <i className="sf2-icon-tick"></i>}</span>
</div>
</DropdownItem> </DropdownItem>
); );
})} })}