diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-01-08 21:01:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 21:01:20 +0300 |
commit | 51a2b74853c862beed77e22ec0808a1a542a7de9 (patch) | |
tree | 666d1e36a842bf0a22ff409ccc5fc40c21339bca /src | |
parent | 3d40f399ed07db6774b21dc6fb0fe74d826e9188 (diff) | |
parent | 62157416e8941e1f299ac1bbd5e42273addfa0cf (diff) |
Merge pull request #2695 from nextcloud/bugfix/2657/make-all-text-bold
Make all text bold for unread conversations
Diffstat (limited to 'src')
-rw-r--r-- | src/components/LeftSidebar/ConversationsList/Conversation.vue | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/components/LeftSidebar/ConversationsList/Conversation.vue b/src/components/LeftSidebar/ConversationsList/Conversation.vue index f94e22827..0c71e0f12 100644 --- a/src/components/LeftSidebar/ConversationsList/Conversation.vue +++ b/src/components/LeftSidebar/ConversationsList/Conversation.vue @@ -22,20 +22,26 @@ <template> <AppContentListItem :title="item.displayName" - :to="{ name: 'conversation', params: { token: item.token }}"> + :to="{ name: 'conversation', params: { token: item.token }}" + :class="{ 'has-unread-messages': item.unreadMessages }"> <template v-slot:icon> <ConversationIcon :item="item" :hide-favorite="false" /> </template> <template v-slot:subtitle> - {{ simpleLastChatMessage }} + <strong v-if="item.unreadMessages"> + {{ simpleLastChatMessage }} + </strong> + <template v-else> + {{ simpleLastChatMessage }} + </template> </template> <AppNavigationCounter v-if="item.unreadMessages" slot="counter" class="counter" :highlighted="item.unreadMention"> - {{ item.unreadMessages }} + <strong>{{ item.unreadMessages }}</strong> </AppNavigationCounter> <template slot="actions"> <ActionButton v-if="canFavorite" @@ -261,6 +267,13 @@ export default { padding: 2px 6px; } } + +.has-unread-messages{ + ::v-deep .acli__content__line-one__title { + font-weight: bold; + } +} + .scroller { flex: 1 0; } |