1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +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">
{sortOptions.map((item, index) => {
return (
<DropdownItem key={index} onClick={this.props.onSelectSortOption.bind(this, item)}>
<div className="d-flex justify-content-between align-items-center">
<span className="mr-8">{item.text}</span>
<span>{item.isSelected && <i className="sf2-icon-tick"></i>}</span>
</div>
<DropdownItem key={index} onClick={this.props.onSelectSortOption.bind(this, item)} className="pl-5 position-relative">
{item.isSelected && <i className="dropdown-item-tick sf2-icon-tick"></i>}
{item.text}
</DropdownItem>
);
})}