mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
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:
parent
053d8bcf7b
commit
a77c9638f6
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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>
|
<no-ssr>
|
||||||
<ds-space margin-bottom="x-small">
|
<ds-space margin-bottom="x-small">
|
||||||
<hc-user
|
<hc-user
|
||||||
@ -30,9 +30,7 @@
|
|||||||
<ds-space margin-bottom="x-small" />
|
<ds-space margin-bottom="x-small" />
|
||||||
<div v-if="resourceType == 'Post'">{{ post.contentExcerpt | removeHtml }}</div>
|
<div v-if="resourceType == 'Post'">{{ post.contentExcerpt | removeHtml }}</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<b>
|
<span class="comment-notification-header">Comment:</span>
|
||||||
Comment:
|
|
||||||
</b>
|
|
||||||
{{ comment.contentExcerpt | removeHtml }}
|
{{ comment.contentExcerpt | removeHtml }}
|
||||||
</div>
|
</div>
|
||||||
</ds-card>
|
</ds-card>
|
||||||
@ -86,4 +84,8 @@ export default {
|
|||||||
.notifications-card {
|
.notifications-card {
|
||||||
min-width: 500px;
|
min-width: 500px;
|
||||||
}
|
}
|
||||||
|
.comment-notification-header {
|
||||||
|
font-weight: 700;
|
||||||
|
margin-right: 0.1rem;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user