Skip to content

Commit b737ff3

Browse files
committed
fix: group multiple emails or phone numbers
Signed-off-by: AntKru <[email protected]>
1 parent 76a479f commit b737ff3

File tree

1 file changed

+30
-19
lines changed

1 file changed

+30
-19
lines changed

src/components/ContactDetails.vue

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -71,35 +71,42 @@
7171
</template>
7272

7373
<template #quick-actions>
74-
<div v-if="!editMode && !loadingData">
75-
<Actions :inline="6"
76-
type="secondary">
77-
<ActionButton v-if="isTalkEnabled && isInSystemAddressBook"
78-
:aria-label="(t('contacts', 'Go to talk conversation'))"
79-
:name="(t('contacts', 'Go to talk conversation'))"
80-
class="icon-talk quick-action"
81-
:href="callUrl" />
82-
<ActionButton v-if="profilePageLink"
83-
class="quick-action"
84-
:aria-label="(t('contacts','View profile'))"
85-
:name="(t('contacts','View profile'))"
86-
:href="profilePageLink">
87-
<template #icon>
88-
<IconAccount :size="20" />
89-
</template>
90-
</ActionButton>
74+
<div v-if="!editMode && !loadingData" class="quick-actions">
75+
<NcButton v-if="isTalkEnabled && isInSystemAddressBook"
76+
:aria-label="(t('contacts', 'Go to talk conversation'))"
77+
:name="(t('contacts', 'Go to talk conversation'))"
78+
class="icon-talk quick-action"
79+
:href="callUrl" />
80+
<NcButton v-if="profilePageLink"
81+
class="quick-action"
82+
:aria-label="(t('contacts','View profile'))"
83+
:name="(t('contacts','View profile'))"
84+
:href="profilePageLink">
85+
<template #icon>
86+
<IconAccount :size="20" />
87+
</template>
88+
</NcButton>
89+
<Actions class="quick-action"
90+
variant="secondary">
91+
<template #icon>
92+
<IconMail :size="20" />
93+
</template>
9194
<ActionLink v-for="emailAddress in emailAddressList"
9295
:key="emailAddress"
93-
class="quick-action"
9496
:href="'mailto:' + emailAddress">
9597
<template #icon>
9698
<IconMail :size="20" />
9799
</template>
98100
{{ emailAddress }}
99101
</ActionLink>
102+
</Actions>
103+
<Actions class="quick-action"
104+
variant="secondary">
105+
<template #icon>
106+
<IconCall :size="20" />
107+
</template>
100108
<ActionLink v-for="phoneNumber in phoneNumberList"
101109
:key="phoneNumber"
102-
class="quick-action"
103110
:href="'tel:' + phoneNumber">
104111
<template #icon>
105112
<IconCall :size="20" />
@@ -1203,4 +1210,8 @@ section.contact-details {
12031210
overflow: hidden;
12041211
text-overflow: ellipsis;
12051212
}
1213+
1214+
.quick-actions {
1215+
display: flex;
1216+
}
12061217
</style>

0 commit comments

Comments
 (0)