Skip to content

Commit

Permalink
fix(Conversation): make the text ellipsized again
Browse files Browse the repository at this point in the history
Signed-off-by: Dorra Jaouad <[email protected]>
  • Loading branch information
DorraJaouad committed Jan 12, 2025
1 parent 2f06d10 commit 83f9b7b
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/components/LeftSidebar/ConversationsList/Conversation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@
force-menu
:compact="compact"
@click="onClick">
<template #name>
<template v-if="compact && iconType">
<component :is="iconType.component" :size="15" :fill-color="iconType.color" />
<span class="hidden-visually">{{ iconType.text }}</span>
</template>
<span>{{ item.displayName }}</span>
</template>
<template #icon>
<ConversationIcon :item="item"
:hide-favorite="compact"
Expand All @@ -38,6 +31,13 @@
:show-user-online-status="compact"
:size="compact? AVATAR.SIZE.COMPACT : AVATAR.SIZE.DEFAULT" />
</template>
<template #name>
<template v-if="compact && iconType">
<component :is="iconType.component" :size="15" :fill-color="iconType.color" />
<span class="hidden-visually">{{ iconType.text }}</span>
</template>
<span class="text"> {{ item.displayName }} </span>
</template>
<template v-if="!compact" #subname>
<!-- eslint-disable-next-line vue/no-v-html -->
<span v-html="conversationInformation" />
Expand Down Expand Up @@ -571,6 +571,12 @@ export default {
}
}

.text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

:deep(.dialog) {
padding-block: 0 8px;
padding-inline: 12px 8px;
Expand Down

0 comments on commit 83f9b7b

Please sign in to comment.