Skip to content

Commit

Permalink
change wiki published style
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 committed Oct 8, 2024
1 parent 470f038 commit 4157952
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/wiki-card-view/wiki-card-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/components/wiki-card-view/wiki-card-view.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4157952

Please sign in to comment.