mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 11:21:29 +00:00
change activity icon
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
table tr .activity-date {
|
||||
border-top: 0;
|
||||
}
|
||||
table td .activity-detail {
|
||||
table .activity-detail {
|
||||
word-break: break-word;
|
||||
}
|
||||
table .activity-detail div {
|
||||
display: inline;
|
||||
}
|
||||
table .activity-detail span {
|
||||
color: #888;
|
||||
}
|
||||
table .activity-detail span:hover {
|
||||
color: #333;
|
||||
text-decoration: underline;
|
||||
}
|
@@ -64,22 +64,9 @@ class ActivityItem extends Component {
|
||||
super(props);
|
||||
this.state = {
|
||||
isListCreatedFiles: false,
|
||||
active: false,
|
||||
};
|
||||
}
|
||||
|
||||
onMouseEnter = () => {
|
||||
this.setState({
|
||||
active: true
|
||||
});
|
||||
}
|
||||
|
||||
onMouseLeave = () => {
|
||||
this.setState({
|
||||
active: false
|
||||
});
|
||||
}
|
||||
|
||||
onListCreatedFilesToggle = () => {
|
||||
this.setState({
|
||||
isListCreatedFiles: !this.state.isListCreatedFiles,
|
||||
@@ -142,9 +129,9 @@ class ActivityItem extends Component {
|
||||
firstLine = firstLine.replace('{n}', fileCount);
|
||||
op = gettext('Created {n} files').replace('{n}', item.createdFilesCount);
|
||||
details =
|
||||
<td>
|
||||
<div className="activity-detail" dangerouslySetInnerHTML={{__html: firstLine}}></div>{' '}
|
||||
{this.state.active && <i className="attr-action-icon fas fa-eye" onClick={this.onListCreatedFilesToggle}></i>}
|
||||
<td className="activity-detail">
|
||||
<div dangerouslySetInnerHTML={{__html: firstLine}}></div>{' '}
|
||||
<span onClick={this.onListCreatedFilesToggle} className="cursor-pointer">{gettext('details')}</span>
|
||||
<br />{smallLibLink}
|
||||
</td>;
|
||||
} else if (item.obj_type == 'file') {
|
||||
@@ -239,7 +226,7 @@ class ActivityItem extends Component {
|
||||
<td colSpan='5' className="activity-date">{moment(item.time).format('YYYY-MM-DD')}</td>
|
||||
</tr>
|
||||
}
|
||||
<tr onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave}>
|
||||
<tr>
|
||||
<td className="text-center">
|
||||
<img src={item.avatar_url} alt="" width="36px" height="36px" className="avatar" />
|
||||
</td>
|
||||
|
Reference in New Issue
Block a user