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

['dir view'] 'list' mode: removed the underline when hover on the star/unstar icons (#6624)

This commit is contained in:
llj
2024-08-23 14:46:07 +08:00
committed by GitHub
parent 2dff33f374
commit c7c059c601

View File

@@ -166,8 +166,6 @@ class DirentListItem extends React.Component {
let repoID = this.props.repoID; let repoID = this.props.repoID;
let filePath = this.getDirentPath(dirent); let filePath = this.getDirentPath(dirent);
e.preventDefault();
if (dirent.starred) { if (dirent.starred) {
seafileAPI.unstarItem(repoID, filePath).then(() => { seafileAPI.unstarItem(repoID, filePath).then(() => {
this.props.updateDirent(this.props.dirent, 'starred', false); this.props.updateDirent(this.props.dirent, 'starred', false);
@@ -736,9 +734,13 @@ class DirentListItem extends React.Component {
</td> </td>
<td className="pl10"> <td className="pl10">
{dirent.starred !== undefined && {dirent.starred !== undefined &&
<a href="#" role="button" aria-label={dirent.starred ? gettext('Unstar') : gettext('Star')} onClick={this.onItemStarred}> <i
<i className={`sf3-font ${dirent.starred ? 'sf3-font-star' : 'sf3-font-star-empty'}`}></i> role="button"
</a> aria-label={dirent.starred ? gettext('Unstar') : gettext('Star')}
onClick={this.onItemStarred}
className={`sf3-font ${dirent.starred ? 'sf3-font-star' : 'sf3-font-star-empty'}`}
>
</i>
} }
</td> </td>
<td className="pl10"> <td className="pl10">