Skip to content

Commit

Permalink
Merge pull request #4042 from nextcloud/fix/contact-list-item-subtitle
Browse files Browse the repository at this point in the history
style(ContactsListItem): fix subtitle
  • Loading branch information
GVodyanov authored Jul 22, 2024
2 parents ccf5399 + 1b9bc73 commit 7a75e56
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/ContactsList/ContactsListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<BaseAvatar :display-name="source.displayName" :url="avatarUrl" :size="40" />
</div>
</template>
<template #subtitle>
<template #subname>
<div class="envelope__subtitle">
<span class="envelope__subtitle__subject">
{{ source.email }}
{{ source.email ? source.email : getTel }}
</span>
</div>
</template>
Expand Down Expand Up @@ -78,6 +78,9 @@ export default {
id() {
return window.btoa(this.source.key).slice(0, -2)
},
getTel() {
return this.source.properties.find(property => property.name === 'tel')?.getFirstValue()
},
},
created() {
Expand Down Expand Up @@ -168,7 +171,6 @@ export default {
gap: 4px;
&__subject {
color: var(--color-main-text);
line-height: 130%;
overflow: hidden;
text-overflow: ellipsis;
Expand Down

0 comments on commit 7a75e56

Please sign in to comment.