Refactor Notification.vue

- Follow @alina-beck's suggestions, use notification over notification: true, use span with font weight and margin-right to remove  
This commit is contained in:
Matt Rider 2019-08-20 08:36:05 +02:00
parent 053d8bcf7b
commit a77c9638f6

View File

@ -1,5 +1,5 @@
<template>
<ds-space :class="{ notification: true, read: notification.read }" margin-bottom="x-small">
<ds-space :class="[{ read: notification.read }, notification]" margin-bottom="x-small">
<no-ssr>
<ds-space margin-bottom="x-small">
<hc-user
@ -30,9 +30,7 @@
<ds-space margin-bottom="x-small" />
<div v-if="resourceType == 'Post'">{{ post.contentExcerpt | removeHtml }}</div>
<div v-else>
<b>
Comment: &nbsp;
</b>
<span class="comment-notification-header">Comment:</span>
{{ comment.contentExcerpt | removeHtml }}
</div>
</ds-card>
@ -86,4 +84,8 @@ export default {
.notifications-card {
min-width: 500px;
}
.comment-notification-header {
font-weight: 700;
margin-right: 0.1rem;
}
</style>