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 {
|
table tr .activity-date {
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
}
|
}
|
||||||
table td .activity-detail {
|
table .activity-detail {
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
table .activity-detail div {
|
||||||
display: inline;
|
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);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
isListCreatedFiles: false,
|
isListCreatedFiles: false,
|
||||||
active: false,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
onMouseEnter = () => {
|
|
||||||
this.setState({
|
|
||||||
active: true
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
onMouseLeave = () => {
|
|
||||||
this.setState({
|
|
||||||
active: false
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
onListCreatedFilesToggle = () => {
|
onListCreatedFilesToggle = () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
isListCreatedFiles: !this.state.isListCreatedFiles,
|
isListCreatedFiles: !this.state.isListCreatedFiles,
|
||||||
@@ -142,9 +129,9 @@ class ActivityItem extends Component {
|
|||||||
firstLine = firstLine.replace('{n}', fileCount);
|
firstLine = firstLine.replace('{n}', fileCount);
|
||||||
op = gettext('Created {n} files').replace('{n}', item.createdFilesCount);
|
op = gettext('Created {n} files').replace('{n}', item.createdFilesCount);
|
||||||
details =
|
details =
|
||||||
<td>
|
<td className="activity-detail">
|
||||||
<div className="activity-detail" dangerouslySetInnerHTML={{__html: firstLine}}></div>{' '}
|
<div dangerouslySetInnerHTML={{__html: firstLine}}></div>{' '}
|
||||||
{this.state.active && <i className="attr-action-icon fas fa-eye" onClick={this.onListCreatedFilesToggle}></i>}
|
<span onClick={this.onListCreatedFilesToggle} className="cursor-pointer">{gettext('details')}</span>
|
||||||
<br />{smallLibLink}
|
<br />{smallLibLink}
|
||||||
</td>;
|
</td>;
|
||||||
} else if (item.obj_type == 'file') {
|
} 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>
|
<td colSpan='5' className="activity-date">{moment(item.time).format('YYYY-MM-DD')}</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
<tr onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave}>
|
<tr>
|
||||||
<td className="text-center">
|
<td className="text-center">
|
||||||
<img src={item.avatar_url} alt="" width="36px" height="36px" className="avatar" />
|
<img src={item.avatar_url} alt="" width="36px" height="36px" className="avatar" />
|
||||||
</td>
|
</td>
|
||||||
|
Reference in New Issue
Block a user