refactor: replace "nbsp" to margin style
This commit is contained in:
parent
82b1b97cc6
commit
f7c4dbb3d5
|
|
@ -14,33 +14,25 @@
|
|||
<span class="date">{{ (new Date(article.createdAt)).toLocaleDateString() }}</span>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-sm btn-outline-secondary">
|
||||
<i class="ion-plus-round" />
|
||||
|
||||
<button class="btn btn-sm btn-outline-secondary space">
|
||||
<i class="ion-plus-round space" />
|
||||
Follow {{ article.author?.username }}
|
||||
</button>
|
||||
|
||||
|
||||
|
||||
<button class="btn btn-sm btn-outline-primary">
|
||||
<i class="ion-heart" />
|
||||
|
||||
{{ article.favorited ? "Unfavorite" : "Favorite" }} Article
|
||||
<button class="btn btn-sm btn-outline-primary space">
|
||||
<i class="ion-heart space" />
|
||||
{{ article.favorited ? 'Unfavorite' : 'Favorite' }} Article
|
||||
<span class="counter">({{ article.favoritesCount }})</span>
|
||||
</button>
|
||||
|
||||
|
||||
|
||||
<AppLink
|
||||
class="btn btn-outline-secondary btn-sm"
|
||||
class="btn btn-outline-secondary btn-sm space"
|
||||
name="editor"
|
||||
:params="{slug: article.slug}"
|
||||
>
|
||||
<i class="ion-edit" /> Edit Article
|
||||
<i class="ion-edit space" /> Edit Article
|
||||
</AppLink>
|
||||
|
||||
|
||||
|
||||
<button class="btn btn-outline-danger btn-sm">
|
||||
<i class="ion-trash-a" /> Delete Article
|
||||
</button>
|
||||
|
|
@ -64,3 +56,9 @@ export default defineComponent({
|
|||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.space {
|
||||
margin-right: 8px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue