1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 10:50:24 +00:00

change wiki published style (#6866)

This commit is contained in:
Michael An
2024-10-08 17:50:51 +08:00
committed by GitHub
parent 052ae31b1b
commit b3b75fe160
2 changed files with 6 additions and 4 deletions

View File

@@ -247,10 +247,10 @@ class WikiCardItem extends Component {
<div className="wiki-item-owner">
{isShowAvatar && (isDepartment ? this.renderDept() : this.renderAvatar())}
</div>
<div className="wiki-item-updated-time">
<div className="wiki-item-bottom">
{moment(wiki.updated_at).fromNow()}
{wiki.is_published &&
<span style={{ marginLeft: '25%' }}>published</span>
<span>{gettext('published')}</span>
}
</div>
</div>

View File

@@ -104,12 +104,14 @@
color: #999;
}
/* wiki-item-updated-time */
.wiki-card-item .wiki-item-updated-time {
/* wiki-item-bottom */
.wiki-card-item .wiki-item-bottom {
height: 20px;
font-size: 12px;
color: #666;
padding-top: 6px;
display: flex;
justify-content: space-between;
}
.wiki-card-item-add span:first-child {